PowerTools SPREAD for Windows Forms 10.0J
RoundPattern プロパティ


値の端数処理を取得または設定します。
構文
'Declaration
 
Public Property RoundPattern As RoundPattern
'使用法
 
Dim instance As GcNumberCellType
Dim value As RoundPattern
 
instance.RoundPattern = value
 
value = instance.RoundPattern
public RoundPattern RoundPattern {get; set;}

プロパティ値

値の端数処理方法を示すRoundPattern値。
次のサンプルコードは、値を丸めます。
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.Fields.SetFields("###.#", "", "", "-", "");
ncell1.RoundPattern = GrapeCity.Win.Spread.InputMan.CellType.RoundPattern.Ceiling;            
fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
fpSpread1.ActiveSheet.Cells[1, 1].Value = 12.31;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.Fields.SetFields("###.#", "", "", "-", "")
ncell1.RoundPattern = GrapeCity.Win.Spread.InputMan.CellType.RoundPattern.Ceiling
FpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
FpSpread1.ActiveSheet.Cells(1, 1).Value = 12.31
参照

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


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