GrapeCity SPREAD for WPF 2.0J
NegativeForeground プロパティ (NumberCellType)

値がゼロ未満のときの前景を示すブラシを取得または設定します。
構文
'Declaration
 
Public Property NegativeForeground As Brush
public Brush NegativeForeground {get; set;}

プロパティ値

値がゼロ未満のときの前景を示す System.Windows.Media.Brush 値。
次のサンプルはNumberCellTypeを作成しNullの非許可および入力候補値を設定します。
public void CreateNumberCell1()
{
    NumberCellType numberCellType1 = new NumberCellType();
    //Editing value cannot delete to null.
    numberCellType1.AllowDeleteToNull = false;
    
    numberCellType1.NegativeForeground = new SolidColorBrush(Colors.Pink);
    numberCellType1.ShowRecommendedValue = true;
    numberCellType1.RecommendedValue = 100;
    this._gcSpreadGrid1[0, 0].CellType = numberCellType1;
}
Public Sub CreateNumberCell1()
    Dim numberCellType1 As New NumberCellType()
    'Editing value cannot delete to null.
    numberCellType1.AllowDeleteToNull = False

    numberCellType1.NegativeForeground = New SolidColorBrush(Colors.Pink)
    numberCellType1.ShowRecommendedValue = True
    numberCellType1.RecommendedValue = 100
    Me._gcSpreadGrid1(0, 0).CellType = numberCellType1
End Sub
参照

NumberCellType クラス
NumberCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.