[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicer.Style

Style Property

Style

Gets or sets the style currently applied to the specified slicer.

Declaration
ITableStyle Style { get; set; }
Property Style As ITableStyle
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Category", "Amount"},
    {"Fruit", 100},
    {"Vegetables", 200},
    {"Fruit", 150}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B4"], true);
ISlicer slicer = workbook.SlicerCaches.Add(table, "Category", "categoryCache")
    .Slicers.Add(worksheet, "categorySlicer", "Category", 30, 100, 120, 160);
ITableStyle style = slicer.Style;