FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > PercentCellType Class > PercentCellType Constructor : PercentCellType Constructor(PercentCellType) |
'Declaration Public Function New( _ ByVal g As PercentCellType _ )
'Usage Dim g As PercentCellType Dim instance As New PercentCellType(g)
public PercentCellType( PercentCellType g )
FarPoint.Win.Spread.CellType.PercentCellType prctcell = new FarPoint.Win.Spread.CellType.PercentCellType(); object o; o = "20"; prctcell.Format(o); prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentAfter; prctcell.PercentSign = "P"; fpSpread1.ActiveSheet.Cells[0, 0].CellType = prctcell; fpSpread1.ActiveSheet.Cells[0, 0].Value = o; FarPoint.Win.Spread.CellType.PercentCellType percent = new FarPoint.Win.Spread.CellType.PercentCellType(prctcell); fpSpread1.ActiveSheet.Cells[0, 1].CellType = percent; fpSpread1.ActiveSheet.Cells[0, 1].Value = o;
Dim prctcell As New FarPoint.Win.Spread.CellType.PercentCellType() Dim o As object o = "20" prctcell.Format(o) prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentAfter prctcell.PercentSign = "P" FpSpread1.ActiveSheet.Cells(0, 0).CellType = prctcell FpSpread1.ActiveSheet.Cells(0, 0).Value = o Dim percent As New FarPoint.Win.Spread.CellType.PercentCellType(prctcell) FpSpread1.ActiveSheet.Cells(0, 1).CellType = percent FpSpread1.ActiveSheet.Cells(0, 1).Value = o
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10