[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableColumn.Index

Index Property

Index

Gets the zero-based index of this table column within the ITableColumns collection.

The index reflects the current position of the column in its parent ITable.

Declaration
int Index { get; }
ReadOnly Property Index As Integer
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 100},
    {"B", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
int index = table.Columns[1].Index;