PowerTools SPREAD for Windows Forms 8.0J
ValueSign プロパティ


コントロールの値の符号を取得または設定します。
構文
'Declaration
 
Public Property ValueSign As ValueSignControl
'使用法
 
Dim instance As GcNumberCellType
Dim value As ValueSignControl
 
instance.ValueSign = value
 
value = instance.ValueSign
public ValueSignControl ValueSign {get; set;}

プロパティ値

値の符号を示すValueSignControl値。
デフォルト値はValueSignControl.NoControlです。
解説
ValueSignプロパティは、受け入れ可能な値を決定します。値がValueSignControl.Positiveの場合は、ゼロ以上の数値のみが許可されます。値がValueSignControl.Negativeの場合は、ゼロ以下の数値のみが許可されます。ValueSignControl.NoControlは、すべての数値が許可されることを意味します。
次のサンプルコードは、ユーザーがセルに正の値を入力できるようにします。
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();            
ncell1.ValueSign = GrapeCity.Win.Spread.InputMan.CellType.ValueSignControl.Positive;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.ValueSign = GrapeCity.Win.Spread.InputMan.CellType.ValueSignControl.Positive
FpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
参照

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


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