IXlSheet.CurrentColumnIndex Property

Gets the index of the column where the document exporter is currently positioned.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v21.2.Core.dll


int CurrentColumnIndex { get; }

Property Value

Type Description

A zero-based integer value that specifies the column index.


The CurrentColumnIndex property returns the zero-based index of the current column if this column is still being generated. In other cases, the CurrentColumnIndex returns the index of the column that follows the last generated column. If no columns have yet been generated, the CurrentColumnIndex property returns 0.


The number of columns in a worksheet is permanently fixed and depends on the output file format (16,384 columns for XLSX and CSV files, and 256 columns for XLS files). Note that you can use the IXlDocumentOptions.MaxColumnCount property to obtain the maximum number of columns supported by the file format to which the document is exported.

See Also