CellValueToStringConverter.Convert(Cell, CellValue, Type, out Object) Method
Converts a worksheet cell value to a string.
Namespace: DevExpress.Spreadsheet.Export
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
public virtual ConversionResult Convert(
Cell cell,
CellValue cellValue,
Type dataColumnType,
out object result
)
Parameters
Name | Type | Description |
---|---|---|
cell | Cell | A Cell object that is the worksheet cell whose value is converted. |
cellValue | CellValue | A CellValue object that is the value to be converted. |
dataColumnType | Type | A Type object that indicates the column data type to which a cell value is converted. Not used, the method always converts a value to the string. |
result | Object | An object that is the result of conversion - a value that will be written in a DataTable. A String object instance. |
Returns
Type | Description |
---|---|
ConversionResult | A ConversionResult enumeration member that indicates whether the conversion is successful. |
Remarks
If the conversion is successful, the Convert method returns the ConversionResult.Success value.
Note
If an attempt to convert a value failed, the Convert method returns the ConversionResult.Error. Then, the DataTableExporter.CellValueConversionError event is raised. If the CellValueConversionError event is not handled, an exception is thrown.