DataTableExporter.GetConverter(Type, String, Int32) Method
Obtains the converter used by the DataTableExporter for the specified column.
Namespace: DevExpress.Spreadsheet.Export
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
public virtual ICellValueToColumnTypeConverter GetConverter(
Type targetType,
string columnName,
int columnIndexInDataTable
)
Parameters
Name | Type | Description |
---|---|---|
targetType | Type | A Type object that specifies the data type for which the converter is obtained. |
columnName | String | A string that is the name of the column in the target DataTable. |
columnIndexInDataTable | Int32 | An integer that is the index of the column in the target DataTable. |
Returns
Type | Description |
---|---|
ICellValueToColumnTypeConverter | An object that exposes the ICellValueToColumnTypeConverter interface. |
Remarks
The GetConverter method enables you to get the converter for the specified column. Note that to specify the column, you should provide the column name and the column index in the DataTable.
A custom converter for a column can be obtained from the DataTableExportOptions.CustomConverters dictionary using an indexer of the string type.