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


NumberMoneyPatternDisplayFieldInfoクラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New()
'使用法
 
Dim instance As New NumberMoneyPatternDisplayFieldInfo()
public NumberMoneyPatternDisplayFieldInfo()
次のサンプルコードは、金額表示フィールドを作成します。
GrapeCity.Win.Spread.InputMan.CellType.Fields.NumberMoneyPatternDisplayFieldInfo mfield = new GrapeCity.Win.Spread.InputMan.CellType.Fields.NumberMoneyPatternDisplayFieldInfo();
mfield.BackColor = Color.Yellow;
mfield.Pattern = "###[##:百]";  //or mfield.Pattern = "###[###:K]";
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.DisplayFields.Add(mfield);
ncell1.PaintByControl = true;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
fpSpread1.ActiveSheet.Cells[1, 1].Value = 7000;
Dim mfield As New GrapeCity.Win.Spread.InputMan.CellType.Fields.NumberMoneyPatternDisplayFieldInfo()
mfield.BackColor = Color.Yellow
mfield.Pattern = "###[##:百]"   'or mfield.Pattern = "###[###:K]";
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.DisplayFields.Add(mfield)
ncell1.PaintByControl = True
FpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
FpSpread1.ActiveSheet.Cells(1, 1).Value = 7000
参照

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

 

 


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