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

負数を表示するためにGcNumber.NegativeColorプロパティを使用するかどうかを示す値を取得または設定します。
構文
'宣言
 
Public Property UseNegativeColor As Boolean
public bool UseNegativeColor {get; set;}

プロパティ値

GcTimeSpan.NegativeColorを使用して負数を表示する場合はtrue
デフォルト値はtrueです。
解説
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.