MESCIUS SPREAD for Windows Forms 17.0J
Pattern プロパティ (NumberMoneyPatternDisplayFieldInfo)

年号の入力形式を取得または設定します。
構文
'Declaration
 
Public Property Pattern As String
public string Pattern {get; set;}

プロパティ値

フィールドのパターンを示すSystem.String値。
デフォルト値は###[####:万]です。
解説
このプロパティは、GrapeCity.Win.Spread.InputMan.CellType.GcNumberに入力フォーカスがないときのNumberMoneyPatternDisplayFieldの表示パターンを取得します。
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 メンバ

 

 


© MESCIUS inc. All rights reserved.