[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITableColumns.Count

Count Property

Count

Gets the number of ITableColumn objects in the collection.

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

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:C3"].Value = new object[,] {
    {"Product", "Q1", "Q2"},
    {"Apple", 100, 120},
    {"Pear", 80, 95}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:C3"], true);
int count = table.Columns.Count;