Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcNumber Class / Integer Property


In This Topic
Integer Property
In This Topic
Gets the integer value of the entered number.
Syntax
'Declaration
 
Public ReadOnly Property Integer As Nullable(Of Decimal)
 
'Usage
 
Dim instance As GcNumber
Dim value As Nullable(Of Decimal)
 
value = instance.Integer

Property Value

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 Integer property. For example: number1.Value = -1234.120 With the example above the Integer will return -1234 and the Decimal property -0.12. number1.Value = 1234 With the example above the Integer will return 1234 and the Decimal property 0. If the underlying value is set to null, this property will return a null.
See Also