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

編集状態で選択したテキストを強調表示するブラシを取得または設定します。
構文
'Declaration
 
Public Property SelectionBrush As Brush
public Brush SelectionBrush {get; set;}

プロパティ値

編集状態で選択したテキストを強調表示するブラシ。
次のサンプルはGeneralCellTypeを作成しセルが編集状態での外観をカスタマイズします。
public void CreateGeneralCell4()
{
    GeneralCellType generalCellType1 = new GeneralCellType();

    //Enter edit status, select some text, the selection background will be Red.
    generalCellType1.SelectionBrush = new SolidColorBrush(Colors.Red);
    generalCellType1.SelectionOpacity = 0.6;
    
    generalCellType1.TextWrapping = System.Windows.TextWrapping.Wrap;

    this._gcSpreadGrid1[0, 0].CellType = generalCellType1;
}
Public Sub CreateGeneralCell4()
    Dim generalCellType1 As New GeneralCellType()

    'Enter edit status, select some text, the selection background will be Red.
    generalCellType1.SelectionBrush = New SolidColorBrush(Colors.Red)
    generalCellType1.SelectionOpacity = 0.6

    generalCellType1.TextWrapping = System.Windows.TextWrapping.Wrap

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

GeneralCellType クラス
GeneralCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.