PowerTools SPREAD for Windows Forms 8.0J
MaxMinBehavior 列挙体


入力中に無効なデータがあるときにGcDateTime.ValueGcNubmer.ValueGcTimeSpan.ValueGcDate.ValueGcTime.Valueの各プロパティをどのように処理するかを定義します。
構文
'Declaration
 
Public Enum MaxMinBehavior 
   Inherits System.Enum
'使用法
 
Dim instance As MaxMinBehavior
public enum MaxMinBehavior : System.Enum 
メンバ
メンバ説明
AdjustToMaxMin最小値から最大値までの有効な範囲に値を調整します。
CancelInput最後の入力を取り消して元のテキストを保持します。
Clear値をnull 参照 (Visual Basicでは Nothing)にクリアします。
Keep最後の入力を残して元のテキストを保持します。
Restoreバックアップ値を指定したプロパティに復元します。
次のサンプルコードは、範囲から外れた値を最小値または最大値に調整します。
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
継承階層

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.MaxMinBehavior

参照

GrapeCity.Win.Spread.InputMan.CellType 名前空間

 

 


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