Spread for ASP.NET 7.0 Product Documentation
DecimalDigits Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PercentCellType Class : DecimalDigits Property


Glossary Item Box

Gets or sets the number of decimal digits to display.

Syntax

Visual Basic (Declaration) 
Public Property DecimalDigits As Integer
Visual Basic (Usage)Copy Code
Dim instance As PercentCellType
Dim value As Integer
 
instance.DecimalDigits = value
 
value = instance.DecimalDigits
C# 
public int DecimalDigits {get; set;}

Property Value

Integer number of digits

Example

This example sets the minimum and maximum values and how to display the percentage.
C#Copy Code
FarPoint.Web.Spread.PercentCellType pctcell = new FarPoint.Web.Spread.PercentCellType();
pctcell.MinimumValue = 0.151;    // 15.1%
pctcell.MaximumValue = 0.94;   // 94.0%
pctcell.DecimalDigits = 1;            // Show only one digit to right of decimal point.
pctcell.FixedPoint = true;
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = pctcell;
Visual BasicCopy Code
Dim pctcell As New FarPoint.Web.Spread.PercentCellType()
pctcell.MinimumValue = 0.151 '15.1%
pctcell.MaximumValue = 0.94 '94.0%
pctcell.DecimalDigits = 1   'Show only one digit to right of decimal point.
pctcell.FixedPoint = True
FpSpread1.ActiveSheetView.Cells(0, 1).CellType = pctcell

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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