[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicer.Name

Name Property

Name

Gets or sets the name of the slicer.

Declaration
string Name { get; set; }
Property Name As String
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Category", "Amount"},
    {"Fruit", 100},
    {"Vegetables", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
ISlicerCache cache = workbook.SlicerCaches.Add(table, "Category", "categoryCache");
ISlicer slicer = cache.Slicers.Add(worksheet, "categorySlicer", "Category", 20, 20, 100, 120);
slicer.Name = "categorySlicerRenamed";
string name = slicer.Name;