Skip to main content

IXlColumn.ColumnIndex Property

Gets the zero-based index of the current column.

Namespace: DevExpress.Export.Xl

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

Declaration

int ColumnIndex { get; }

Property Value

Type Description
Int32

An integer specifying the position of the column in the worksheet.

Remarks

Worksheet cells are organized into rows and columns. The number of rows and columns is permanently fixed and depends on the output file format (1,048,576 rows and 16,384 columns for XLSX files, and 65,536 rows and 256 columns for XLS files). Use the ColumnIndex property to obtain the zero-based index of the current column in a worksheet.

SpreadsheetControl_Row_Column_Indexes

To obtain the index of the column that contains the specified cell, use the IXlCell.ColumnIndex property.

See Also