XlNumberFormat.FormatId Property
Gets the unique identifier associated with the current number format.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value that is the number format ID. |
Remarks
Each XlNumberFormat object that specifies the predefined Excel number or date and time format has a unique identifier returned by the FormatId property. If the custom number format is used to display a cell value, the FormatId property returns -1.
For details on how to apply a number format to a cell value, refer to the How to: Specify Number Format for Cell Content example.
See Also