GrapeCity SPREAD for Windows Forms 12.0J
ValueProcessOption 列挙体


ValueProcessによって使用されるオプションを定義します。
構文
'Declaration
 
Public Enum ValueProcessOption 
   Inherits System.Enum
'使用法
 
Dim instance As ValueProcessOption
public enum ValueProcessOption : System.Enum 
メンバ
メンバ説明
Clear値をクリアします。
Keep値を保持します。
Restore以前の値に戻します。
次のサンプルコードは、無効な値をクリアします。
//Typing a value outside the range clears the value when leaving the cell
FarPoint.Win.Spread.ValueProcess cnotify = new FarPoint.Win.Spread.ValueProcess();
cnotify.ValueProcessOption = FarPoint.Win.Spread.ValueProcessOption.Clear;
FarPoint.Win.Spread.TextLengthValidator tvalid = new FarPoint.Win.Spread.TextLengthValidator();
tvalid.LengthUnit = FarPoint.Win.Spread.LengthUnit.Char;
tvalid.MaximumLength = 6;
tvalid.MinimumLength = 0;
tvalid.Actions.Add(cnotify);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), tvalid);
'Typing a value outside the range clears the value when leaving the cell
Dim cnotify As New FarPoint.Win.Spread.ValueProcess()
cnotify.ValueProcessOption = FarPoint.Win.Spread.ValueProcessOption.Clear
Dim tvalid As New FarPoint.Win.Spread.TextLengthValidator()
tvalid.LengthUnit = FarPoint.Win.Spread.LengthUnit.Char
tvalid.MaximumLength = 6
tvalid.MinimumLength = 0
tvalid.Actions.Add(cnotify)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), tvalid)
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.ValueProcessOption

参照

FarPoint.Win.Spread 名前空間

 

 


Copyright © 2004 GrapeCity inc.