Spread Windows Forms 12.0 Product Documentation
NumberMoneyPatternDisplayFieldInfo Constructor()
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType.Fields Namespace > NumberMoneyPatternDisplayFieldInfo Class > NumberMoneyPatternDisplayFieldInfo Constructor : NumberMoneyPatternDisplayFieldInfo Constructor()
Initializes a new instance of the NumberMoneyPatternDisplayFieldInfo class.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New NumberMoneyPatternDisplayFieldInfo()
public NumberMoneyPatternDisplayFieldInfo()
Example
This example creates a money display pattern.
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
See Also

Reference

NumberMoneyPatternDisplayFieldInfo Class
NumberMoneyPatternDisplayFieldInfo Members
Overload List