[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFilters.Count

Count Property

Count

Gets the number of filters in the collection.

This property represents the number of IFilter objects in the IFilters collection for the current auto filter range.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"Apple", 100},
    {"Orange", 200}
};
worksheet.Range["A1:B3"].AutoFilter();
IFilters filters = worksheet.AutoFilter.Filters;
int count = filters.Count;