Spread Windows Forms 11.0 Product Documentation
PercentSign Property (PercentCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > PercentCellType Class : PercentSign Property
Gets or sets the character to display as the percent sign.
Syntax
'Declaration
 
Public Property PercentSign As String
'Usage
 
Dim instance As PercentCellType
Dim value As String
 
instance.PercentSign = value
 
value = instance.PercentSign
public string PercentSign {get; set;}

Property Value

String containing the percent symbol
Example

This example creates a percent-formatted numeric cell and sets the format and the percent symbol.

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