Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

IRangeProvider.GetColumnIndexByName(String) Method

Returns the index of the column with the specified heading in the A1 reference style.

Namespace: DevExpress.Spreadsheet

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

Declaration

int GetColumnIndexByName(
    string columnHeading
)

Parameters

Name Type Description
columnHeading String

The heading of the column whose index should be returned.

Returns

Type Description
Int32

The column’s index. -1, if an invalid columnHeading is specified.

Remarks

Use the IRangeProvider.GetColumnNameByIndex method to obtain the column’s name by its index in the ColumnCollection collection.

See Also