Back to Devexpress

IRangeProvider.GetColumnIndexByName(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-irangeprovider-dot-getcolumnindexbyname-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
int GetColumnIndexByName(
    string columnHeading
)
vb
Function GetColumnIndexByName(
    columnHeading As String
) As Integer

Parameters

NameTypeDescription
columnHeadingString

The heading of the column whose index should be returned.

|

Returns

TypeDescription
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

GetColumnNameByIndex

IRangeProvider Interface

IRangeProvider Members

DevExpress.Spreadsheet Namespace