FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > NumberCellType Class : FractionRenderOnly Property |
'Declaration Public Overridable Property FractionRenderOnly As Boolean
'Usage Dim instance As NumberCellType Dim value As Boolean instance.FractionRenderOnly = value value = instance.FractionRenderOnly
public virtual bool FractionRenderOnly {get; set;}
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
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