[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPivotFilter.Delete

Delete Method

Delete()

Deletes this pivot filter.

Calling this method removes the filter from the filter collection of its IPivotField.

Declaration
void Delete()
Sub Delete()
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Product", "Amount"},
    {"Apple", 120},
    {"Banana", 90},
    {"Apricot", 150}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B4"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "SalesPivot");
IPivotField productField = pivotTable.PivotFields["Product"];
productField.Orientation = PivotFieldOrientation.RowField;
IPivotFilter filter = productField.PivotFilters.Add(PivotFilterType.CaptionBeginsWith, "A");
filter.Delete();