XlVariantValue.IsNumeric Property
Gets whether the current XlVariantValue object contains a number.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the current value is of the numeric type; otherwise, false |
Remarks
You can also use the XlVariantValue.Type property to obtain the value type. This property returns XlVariantValueType.Numeric, if the value is a number.
Use the XlVariantValue.NumericValue property to get the number stored by the XlVariantValue object.
Note
Note that a date and time value is stored in the XlVariantValue object as a serial number and displayed in a cell according to the applied date and time format. Therefore, if a date and time value is assigned to the XlVariantValue object, the IsNumeric property returns true and the XlVariantValue.Type property returns XlVariantValueType.Numeric. The XlVariantValue.NumericValue property returns a number contained in a cell, and the XlVariantValue.DateTimeValue property returns the DateTime object, which specifies the date and time value represented by that number.