Skip to main content
A newer version of this page is available. .

IXlSheet.CurrentColumnIndex Property

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

Namespace: DevExpress.Export.Xl

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

Declaration

int CurrentColumnIndex { get; }

Property Value

Type Description
Int32

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

Remarks

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.

Note

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