PowerTools ActiveReports for .NET 11.0J
SelectionIndent プロパティ
使用例 

RichTextBox の左端から、現在選択されているテキストの左端までの距離をピクセル単位で取得または設定します。
構文
'宣言
 
Public Property SelectionIndent As Single
public float SelectionIndent {get; set;}

プロパティ値

現在選択されているテキストの左に適用されているインデントの現在の幅を表す整数値(ピクセル単位)。

使用例
private void detail_Format(object sender, System.EventArgs eArgs)
{
    if (this.rtbActiveReport.Find("List") != -1)
    {
        this.rtbActiveReport.SelectionStart = this.rtbActiveReport.Find("List");
        this.rtbActiveReport.SelectionLength = 4;
        this.rtbActiveReport.SelectionIndent = 0.5f;
    }
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    If Not Me.rtbActiveReport.Find("List") = -1 Then
        Me.rtbActiveReport.SelectionStart = Me.rtbActiveReport.Find("List")
        Me.rtbActiveReport.SelectionLength = 4
        Me.rtbActiveReport.SelectionIndent = 0.5
    End If
End Sub
参照

関連項目

RichTextBox クラス
RichTextBox メンバ
SelectionHangingIndent プロパティ
SelectionRightIndent プロパティ

 

 


©2003-2017 GrapeCity inc. All rights reserved.