Spread Windows Forms 6.0 Product Documentation
PercentCellType Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > PercentCellType Class > PercentCellType Constructor : PercentCellType Constructor()


Glossary Item Box

Creates a new percent cell with default settings.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New PercentCellType()
C# 
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.
C#Copy Code
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.PercentSignBefore;
prctcell.PercentSign = "PRCNT";
fpSpread1.ActiveSheet.Cells[0, 0].CellType = prctcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = o;
Visual BasicCopy Code
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.PercentSignBefore
FpSpread1.ActiveSheet.Cells(0, 0).CellType = prctcell
FpSpread1.ActiveSheet.Cells(0, 0).Value = o

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.