GrapeCity SPREAD for WPF 2.0J
SelectionBrush プロパティ (EditBaseCellType)

選択されているテキストを強調表示するブラシを取得または設定します。 これは依存関係プロパティです。
構文
'Declaration
 
Public Property SelectionBrush As Brush
public Brush SelectionBrush {get; set;}

プロパティ値

選択されているテキストを強調表示する System.Windows.Media.Brush
次のサンプルは TextCellType を作成します。選択状態のテキストの背景色を設定します。
public void SetTextCell3()
{
    TextCellType textCellType1 = new TextCellType();
    //Enter edit status, select some text, the selection background will be Red.
    textCellType1.SelectionBrush = new SolidColorBrush(Colors.Red);
    textCellType1.SelectionOpacity = 0.6;
    textCellType1.Multiline = true;
    textCellType1.TextWrapping = System.Windows.TextWrapping.Wrap;

    this._gcSpreadGrid1[0, 0].CellType = textCellType1;
}
Public Sub SetTextCell3()
    Dim textCellType1 As New TextCellType()
    'Enter edit status, select some text, the selection background will be Red.
    textCellType1.SelectionBrush = New SolidColorBrush(Colors.Red)
    textCellType1.SelectionOpacity = 0.6
    textCellType1.Multiline = True
    textCellType1.TextWrapping = System.Windows.TextWrapping.Wrap

    Me._gcSpreadGrid1(0, 0).CellType = textCellType1
End Sub
参照

EditBaseCellType クラス
EditBaseCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.