[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableRow.Index

Index Property

Index

Gets the index of this ITableRow within the ITableRows collection.

Use this property to determine the position of a data row in the table's row collection.

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);
ITableRow row = table.Rows[1];
int index = row.Index;