FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > NumberCellType Class : DecimalPlaces Property |
'Declaration Public Property DecimalPlaces As Integer
'Usage Dim instance As NumberCellType Dim value As Integer instance.DecimalPlaces = value value = instance.DecimalPlaces
public int DecimalPlaces {get; set;}
The maximum number is 16.
FarPoint.Win.Spread.CellType.NumberCellType num = new FarPoint.Win.Spread.CellType.NumberCellType(); num.DecimalPlaces = 3; num.DecimalSeparator = ","; num.FixedPoint = true; num.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.UseRegional; num.MaximumValue = 50000.0; num.MinimumValue = -1000.0; num.NegativeFormat = FarPoint.Win.Spread.CellType.NegativeFormat.Parentheses; num.NegativeRed = true; num.Separator = "/"; num.ShowSeparator = true; num.SpinButton = true; num.SpinDecimalIncrement = 10; num.SpinIntegerIncrement = 5; num.SpinWrap = true; fpSpread1.ActiveSheet.Cells[0, 0].CellType = num; fpSpread1.ActiveSheet.Cells[0, 0].Value = -443.0908;
Dim num As New FarPoint.Win.Spread.CellType.NumberCellType() num.DecimalPlaces = 3 num.DecimalSeparator = "," num.FixedPoint = True num.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.UseRegional num.MaximumValue = 50000.0 num.MinimumValue = -1000.0 num.NegativeFormat = FarPoint.Win.Spread.CellType.NegativeFormat.Parentheses num.NegativeRed = True num.Separator = "/" num.ShowSeparator = True num.SpinButton = True num.SpinDecimalIncrement = 10 num.SpinIntegerIncrement = 5 num.SpinWrap = True FpSpread1.ActiveSheet.Cells(0, 0).CellType = num FpSpread1.ActiveSheet.Cells(0, 0).Value = 443.9098
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