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

現在の選択内容または挿入ポイントに適用する配置を取得または設定します。
構文
'宣言
 
Public Property SelectionAlignment As TextAlignment
public TextAlignment SelectionAlignment {get; set;}

プロパティ値

TextAlignment列挙体
使用例
private void detail_Format(object sender, System.EventArgs eArgs)
{
    if (this.rtbActiveReport.Find("Title") != -1)
    {
        this.rtbActiveReport.SelectionStart = this.rtbActiveReport.Find("Title");
        this.rtbActiveReport.SelectionLength = 5;
        this.rtbActiveReport.SelectionAlignment = TextAlignment.Center;
    }
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    If Not Me.rtbActiveReport.Find("Title") = -1 Then
        Me.rtbActiveReport.SelectionStart = Me.rtbActiveReport.Find("Title")
        Me.rtbActiveReport.SelectionLength = 5
        Me.rtbActiveReport.SelectionAlignment = TextAlignment.Center
    End If
End Sub
参照

関連項目

RichTextBox クラス
RichTextBox メンバ

 

 


©2003-2017 GrapeCity inc. All rights reserved.