GrapeCity SPREAD for Windows Forms 11.0J
CurrencyCellType コンストラクタ(CurrencyCellType)


コピー元の通貨セル型
指定したセル型から新しいコピーを作成します(コピーコンストラクター)。
構文
'Declaration
 
Public Function New( _
   ByVal g As CurrencyCellType _
)
'使用法
 
Dim g As CurrencyCellType
 
Dim instance As New CurrencyCellType(g)
public CurrencyCellType( 
   CurrencyCellType g
)

パラメータ

g
コピー元の通貨セル型
次のサンプルコードは、通貨型セルを作成します。
FarPoint.Win.Spread.CellType.CurrencyCellType currcell = new FarPoint.Win.Spread.CellType.CurrencyCellType();
currcell.CurrencySymbol = "CN$";
currcell.DecimalPlaces = 2;
currcell.DecimalSeparator = "#";
currcell.FixedPoint = true;           
currcell.ShowCurrencySymbol = true;
currcell.ShowSeparator = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = currcell;
fpSpread1.Sheets[0].Cells[1, 1].Value = 321.98;

fpSpread1.Sheets[0].Cells[1,0].CellType = new FarPoint.Win.Spread.CellType.CurrencyCellType(currcell);
fpSpread1.Sheets[0].Cells[1, 0].Value = 35.32;
Dim currcell As New FarPoint.Win.Spread.CellType.CurrencyCellType()
currcell.CurrencySymbol = "CN$"
currcell.DecimalPlaces = 2
currcell.DecimalSeparator = "#"
currcell.FixedPoint = True
currcell.ShowCurrencySymbol = True
currcell.ShowSeparator = True
FpSpread1.Sheets(0).Cells(1, 1).CellType = currcell
FpSpread1.Sheets(0).Cells(1, 1).Value = 321.98
FpSpread1.Sheets(0).Cells(1, 0).CellType = New FarPoint.Win.Spread.CellType.CurrencyCellType(currcell)
FpSpread1.Sheets(0).Cells(1, 0).Value = 35.32
参照

CurrencyCellType クラス
CurrencyCellType メンバ
オーバーロード一覧

 

 


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