Method ColumnNameToIndex
ColumnNameToIndex(string)
Convert a column name to its id value. E.G 'A' = 0, 'B' = 1, 'AA' = 26, 'AB' = 27
Declaration
public static int ColumnNameToIndex(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the column, case insensitive. |
Returns
| Type | Description |
|---|---|
| int | The column index or 0. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |