MESCIUS SPREAD for ASP.NET 10.0J
NumberFormat プロパティ (GeneralCellType)

通貨など数値の書式を設定するためのNumberFormatInfoを取得または設定します。
構文
'Declaration
 
Public Overridable Property NumberFormat As NumberFormatInfo
public virtual NumberFormatInfo NumberFormat {get; set;}

プロパティ値

数値を書式設定するための情報を含むNumberFormatInfoオブジェクト
FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
System.Globalization.NumberFormatInfo nfi = new System.Globalization.NumberFormatInfo();
nfi.NumberDecimalDigits = 3;
nfi.NumberDecimalSeparator = ",";
g.NumberFormat = nfi;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = 234.56;
Dim g As New FarPoint.Web.Spread.GeneralCellType
Dim nfi As New System.Globalization.NumberFormatInfo
nfi.NumberDecimalDigits = 3
nfi.NumberDecimalSeparator = ","
g.NumberFormat = nfi
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g
FpSpread1.ActiveSheetView.Cells(0, 0).Value = 234.56
参照

GeneralCellType クラス
GeneralCellType メンバ

 

 


© MESCIUS inc. All rights reserved.