[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableRows.Count

Count Property

Count

Gets the number of ITableRow objects in the collection.

Use this property to determine how many data rows are currently defined in a table.

Declaration
int Count { get; }
ReadOnly Property Count 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 count = table.Rows.Count;