PowerTools ActiveReports for .NET 9.0J
SelectionColor プロパティ
使用例 

現在選択されているテキストの色を取得または設定します。
構文
'宣言
 
Public Property SelectionColor As Color
public Color SelectionColor {get; set;}

プロパティ値

System.Drawing.Color値。現在選択されているテキストに適用する色を表します。

解説

現在選択されているテキストに複数の色が指定されている場合、このプロパティは Color.Empty を返します。

使用例
private void detail_Format(object sender, System.EventArgs eArgs)
{
    if (this.rtbActiveReport.Find("footnote") != -1)
    {
        this.rtbActiveReport.SelectionStart = this.rtbActiveReport.Find("footnote");
        this.rtbActiveReport.SelectionLength = 11;
        this.rtbActiveReport.SelectionCharOffset = .05f;
        this.rtbActiveReport.SelectionColor = System.Drawing.Color.CornflowerBlue;
    }
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    If Not Me.rtbActiveReport.Find("footnote") = -1 Then
        Me.rtbActiveReport.SelectionStart = Me.rtbActiveReport.Find("footnote")
        Me.rtbActiveReport.SelectionLength = 11
        Me.rtbActiveReport.SelectionCharOffset = 0.05
        Me.rtbActiveReport.SelectionColor = System.Drawing.Color.CornflowerBlue
    End If
End Sub
参照

関連項目

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

 

 


©2003-2015 GrapeCity inc. All rights reserved.