Method GetNextAvailableColumn
GetNextAvailableColumn(IList<SheetColumn>)
Returns the next available column name. For example if columns was using "A", "B", "D" then "C" would be returned.
Declaration
public static string GetNextAvailableColumn(IList<SheetColumn> columns)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<SheetColumn> | columns | The columns that are currently in use. |
Returns
| Type | Description |
|---|---|
| string | The next available column name. |
GetNextAvailableColumn(params string[])
Returns the next available column name. For example if reservedColumns was "A", "B", "D" then "C" would be returned.
Declaration
public static string GetNextAvailableColumn(params string[] reservedColumns)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | reservedColumns | The column names that are currently in use. |
Returns
| Type | Description |
|---|---|
| string | The next available column name. |
GetNextAvailableColumn(HashSet<int>)
Returns the next available sheet column.
Declaration
public static string GetNextAvailableColumn(HashSet<int> reservedColumIds)
Parameters
| Type | Name | Description |
|---|---|---|
| HashSet<int> | reservedColumIds | The reserved column ids where "A" = 0, "B" = 1 etc. The found available column will also be added. |
Returns
| Type | Description |
|---|---|
| string |