GrapeCity SPREAD for Windows Forms 11.0J
MaxValue プロパティ (GcNumberCellType)


スピンオプションを使用するときの許容される最大値を取得または設定します。
構文
'Declaration
 
Public Property MaxValue As Decimal
'使用法
 
Dim instance As GcNumberCellType
Dim value As Decimal
 
instance.MaxValue = value
 
value = instance.MaxValue
public decimal MaxValue {get; set;}

プロパティ値

許容される最大値を示すSystem.Decimal値。
例外
例外説明
System.ArgumentOutOfRangeException値がMinValue未満であるか、デフォルト値を超えています。
次のサンプルコードは、範囲から外れた値を最小値または最大値に調整します。
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
inputcell1.MaxValue = 50;
inputcell1.MinValue = 0;
inputcell1.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.AdjustToMaxMin;
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
inputcell1.MaxValue = 50
inputcell1.MinValue = 0
inputcell1.MaxMinBehavior = GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior.AdjustToMaxMin
FpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1
参照

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.