PowerTools SPREAD for ASP.NET 8.0J
FixedPoint プロパティ (PercentCellType)

固定小数点で数値を表示するために数値の小数部分に桁数を表すゼロを表示するかどうかを取得または設定します。
構文
'Declaration
 
Public Property FixedPoint As Boolean
public bool FixedPoint {get; set;}

プロパティ値

Boolean:プレースホルダとして0を使用して固定小数点で表示する場合はTrue、それ以外の場合はFalse
次のサンプルコードは、最小値および最大値とパーセント値の表示方法を設定します。
FarPoint.Web.Spread.PercentCellType pctcell = new FarPoint.Web.Spread.PercentCellType();
pctcell.MinimumValue = 0.151;    // 15.1%
pctcell.MaximumValue = 0.94;   // 94.0%
pctcell.DecimalDigits = 1;            // Show only one digit to right of decimal point.
pctcell.FixedPoint = true;
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = pctcell;
Dim pctcell As New FarPoint.Web.Spread.PercentCellType()
pctcell.MinimumValue = 0.151 '15.1%
pctcell.MaximumValue = 0.94 '94.0%
pctcell.DecimalDigits = 1   'Show only one digit to right of decimal point.
pctcell.FixedPoint = True
FpSpread1.ActiveSheetView.Cells(0, 1).CellType = pctcell
参照

PercentCellType クラス
PercentCellType メンバ

 

 


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