CellValueToColumnTypeConverter.TreatStringAsZero Property
In This Article
Gets or sets whether a cell containing text should be converted to a 0 (zero) numeric value.
Namespace: DevExpress.Spreadsheet.Export
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true, to return 0 (zero) if the converted cell contains text; otherwise, false. |
#Remarks
The use cases for the TreatStringAsZero property are listed in the following table.
Cell |
Treat |
Effect |
---|---|---|
true | any | An attempt is made to convert cell text to the specified type. The Treat |
false | true | If the destination data type is not the String, the conversion result is zero (0) numeric value. |
false | false | If the destination data type is not the String, the Conversion |
See Also