PowerTools SPREAD for Windows Forms 10.0J
SpinWrap プロパティ (NumberCellType)


最小値または最大値に達したときに折り返すかどうかを表す値を取得または設定します。
構文
'Declaration
 
Public Property SpinWrap As Boolean
'使用法
 
Dim instance As NumberCellType
Dim value As Boolean
 
instance.SpinWrap = value
 
value = instance.SpinWrap
public bool SpinWrap {get; set;}

プロパティ値

Boolean:スピン ボタンの値を折り返す場合は True、それ以外の場合は False
次のサンプルコードは、数値型セルのいくつかのプロパティ(スピンボタンの増分量など)を設定します。
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-2017, GrapeCity inc. All rights reserved.