Spread Windows Forms 12.0 Product Documentation
PercentCellType Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > PercentCellType Class > PercentCellType Constructor : PercentCellType Constructor()
Creates a new percent cell with default settings.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New PercentCellType()
public PercentCellType()
Example
This example creates a cell of this type, sets properties of this cell type, and assigns this cell type to a cell.
FarPoint.Win.Spread.CellType.PercentCellType prctcell = new FarPoint.Win.Spread.CellType.PercentCellType();
object o;
o = "200";
prctcell.Format(o);
prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentBefore;
prctcell.PercentSign = "PRCNT";
fpSpread1.ActiveSheet.Cells[0, 0].CellType = prctcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = o;
Dim prctcell As New FarPoint.Win.Spread.CellType.PercentCellType()
Dim o As Object
o = "200"
prctcell.Format(o)
prctcell.PercentSign = "PRCNT"
prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentBefore
FpSpread1.ActiveSheet.Cells(0, 0).CellType = prctcell
FpSpread1.ActiveSheet.Cells(0, 0).Value = o
See Also

Reference

PercentCellType Class
PercentCellType Members
Overload List