PowerTools SPREAD for Windows Forms 8.0J
NegativeColor プロパティ (GcNumberCellType)


このコントロールの値の符号が負である場合の色を取得または設定します。
構文
'Declaration
 
Public Property NegativeColor As Color
'使用法
 
Dim instance As GcNumberCellType
Dim value As Color
 
instance.NegativeColor = value
 
value = instance.NegativeColor
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 メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.