Spread Windows Forms 12.0 Product Documentation
FractionDenominatorPrecision Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : FractionDenominatorPrecision Enumeration
Specifies the precision of the fraction denominator for numeric cells that display as fractions.
Syntax
'Declaration
 
Public Enum FractionDenominatorPrecision 
   Inherits System.Enum
'Usage
 
Dim instance As FractionDenominatorPrecision
public enum FractionDenominatorPrecision : System.Enum 
Members
MemberDescription
AutoSets the precision automatically.
CustomSets the precision to a custom value.
EighthsSets the precision to eighths.
HalvesSets the precision to halves.
HundredthsSets the precision to hundredths.
QuartersSets the precision to quarters.
SixteenthsSets the precision to sixteenths.
SixtyFourthsSets the precision to sixty-fourths.
TenthsSets the precision to tenths.
ThirtySecondsSets the precision to thirty-seconds.
ThousandthsSets the precision to thousandths.
Example
This example creates a number cell.
FarPoint.Win.Spread.CellType.NumberCellType n = new FarPoint.Win.Spread.CellType.NumberCellType();
n.FractionMode = true;            
n.DecimalPlaces = 2;
n.FractionDenominatorDigits = 2;
n.FractionCustomFormat = "# ??/??";
n.FractionRenderOnly = true;
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = n;
fpSpread1.ActiveSheet.Cells[0, 0].Value = 5.004;
Dim n As New FarPoint.Win.Spread.CellType.NumberCellType()
n.FractionMode = True        
n.DecimalPlaces = 2
n.FractionDenominatorDigits = 2
n.FractionCustomFormat = "# ??/??"
n.FractionRenderOnly = True
n.FractionDenominatorPrecision = FarPoint.Win.Spread.CellType.FractionDenominatorPrecision.Hundredths
fpSpread1.ActiveSheet.Cells(0, 0).CellType = n
fpSpread1.ActiveSheet.Cells(0, 0).Value = 5.004
Inheritance Hierarchy

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

See Also

Reference

FarPoint.Win.Spread.CellType Namespace