GrapeCity SPREAD for Windows Forms 11.0J
SpinIntegerIncrement プロパティ (NumberCellType)


スピンボタンを使用したときに値を増分する量を設定します (カーソルが整数部分にある場合)。
構文
'Declaration
 
Public Property SpinIntegerIncrement As Single
'使用法
 
Dim instance As NumberCellType
Dim value As Single
 
instance.SpinIntegerIncrement = value
 
value = instance.SpinIntegerIncrement
public float SpinIntegerIncrement {get; set;}

プロパティ値

整数に対する増分量を表す単精度浮動小数点数
解説

この増分量は、カーソルが小数点区切り記号の左側にあり、値が整数に制限されていない場合に適用されます。

次のサンプルコードは、数値型セルのいくつかのプロパティ(スピンボタンの増分量など)を設定します。
FarPoint.Win.Spread.CellType.NumberCellType num = new FarPoint.Win.Spread.CellType.NumberCellType();
num.DecimalPlaces = 3;
num.DecimalSeparator = ",";
num.FixedPoint = true;
num.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.UseRegional;
num.MaximumValue = 50000.0;
num.MinimumValue = -1000.0;
num.NegativeFormat = FarPoint.Win.Spread.CellType.NegativeFormat.Parentheses;
num.NegativeRed = true;
num.Separator = "/";
num.ShowSeparator = true;
num.SpinButton = true;
num.SpinDecimalIncrement = 10;
num.SpinIntegerIncrement = 5;
num.SpinWrap = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = num;
fpSpread1.ActiveSheet.Cells[0, 0].Value = -443.0908;
Dim num As New FarPoint.Win.Spread.CellType.NumberCellType()
num.DecimalPlaces = 3
num.DecimalSeparator = ","
num.FixedPoint = True
num.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.UseRegional
num.MaximumValue = 50000.0
num.MinimumValue = -1000.0
num.NegativeFormat = FarPoint.Win.Spread.CellType.NegativeFormat.Parentheses
num.NegativeRed = True
num.Separator = "/"
num.ShowSeparator = True
num.SpinButton = True
num.SpinDecimalIncrement = 10
num.SpinIntegerIncrement = 5
num.SpinWrap = True
FpSpread1.ActiveSheet.Cells(0, 0).CellType = num
FpSpread1.ActiveSheet.Cells(0, 0).Value = 443.9098
参照

NumberCellType クラス
NumberCellType メンバ

開発者ガイド

スピン ボタンの表示

 

 


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