[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer

Integer Property

Integer

Gets the integer part value of the current number Value. GcNumberValueDecimal

Declaration
public decimal? Integer { get; }
Public ReadOnly Property [Integer] As Decimal?
Property Value
Type Description
decimal?

A nullable decimal value indicates the integer part of the entered number.

Remarks

This property allows you to retrieve the integer portion of the current value at run time. You can also retrieve the decimal portion using the Decimal property. For example:

number1.Value = -1234.120
With the example above, the Integer returns -1234 and the Decimal property returns -0.12.

number1.Value = 1234
With the example above, the Integer returns 1234 and the Decimal property returns 0.

If the underlying value is set to null, this property will return a null.