Spread Windows Forms 6.0 Product Documentation
PercentPositiveFormat Enumeration
Example  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : PercentPositiveFormat Enumeration


Glossary Item Box

Specifies the display of positive values in a percent cell.

Syntax

Visual Basic (Declaration) 
Public Enum PercentPositiveFormat 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As PercentPositiveFormat
C# 
public enum PercentPositiveFormat : System.Enum 

Members

MemberDescription
PercentAfter[1] Displays the positive percent value with the percent symbol following the number
PercentAfterWithSpace[0] Displays the positive percent value with a space and the percent symbol following the number
PercentBefore[2] Displays the positive percent value with the percent symbol before the number
UseRegional[-1] Displays the positive percent value in the format set by the Windows regional settings

Example

This example specifies the format for positive percent values and places the percent sign after the value.
C#Copy Code
FarPoint.Win.Spread.CellType.PercentCellType prct = new FarPoint.Win.Spread.CellType.PercentCellType();
prct.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentAfter;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = prct;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 0.34;
Visual BasicCopy Code
Dim prct As New FarPoint.Win.Spread.CellType.PercentCellType()
prct.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentAfter
FpSpread1.ActiveSheet.Cells(0, 0).CellType = prct
FpSpread1.ActiveSheet.Cells(0, 0).Value = 0.34

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.PercentPositiveFormat

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.