[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicer.DisplayHeader

DisplayHeader Property

DisplayHeader

Gets or sets whether the header that displays the slicer's caption is visible.

Use this property to determine whether the slicer shows its caption header.

Declaration
bool DisplayHeader { get; set; }
Property DisplayHeader As Boolean
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Category", "Amount"},
    {"Fruit", 100},
    {"Vegetable", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
ISlicer slicer = workbook.SlicerCaches.Add(table, "Category")
    .Slicers.Add(worksheet, "slicer1", "Category", 10, 10, 120, 160);
slicer.DisplayHeader = false;
bool displayHeader = slicer.DisplayHeader;