MESCIUS SPREAD for Windows Forms 15.0J
NegativeColor プロパティ (GcNumberCellType)
使用例 

このコントロールの値の符号が負である場合の色を取得または設定します。
構文
'宣言
 
Public Property NegativeColor As Color
public Color NegativeColor {get; set;}

プロパティ値

負数の色。
解説
GrapeCity.Win.Valueプロパティがゼロより小さく、UseNegativeColorプロパティがtrueである場合、テキストの色はこのプロパティ値を使用します。
使用例
次のサンプルコードは、負数の色を設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.NegativeColor = Color.Red;
ncell1.UseNegativeColor = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
fpSpread1.Sheets[0].Cells[1, 1].Value = -1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.NegativeColor = Color.Red
ncell1.UseNegativeColor = True
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
fpSpread1.Sheets(0).Cells(1, 1).Value = -1
参照

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


© MESCIUS inc. All rights reserved.