[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicer.Width

Width Property

Width

Gets or sets the width of the specified slicer, in points.

Use this property to retrieve the current horizontal size of the slicer on the worksheet.

Declaration
double Width { get; set; }
Property Width As Double
Examples
worksheet.Range["A1:A3"].Value = new object[,] {
    {"Category"},
    {"Fruit"},
    {"Vegetables"}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:A3"], true);
ISlicerCache cache = workbook.SlicerCaches.Add(table, "Category", "categoryCache");
ISlicer slicer = cache.Slicers.Add(worksheet, "categorySlicer", "Category", 30, 30, 120, 160);
double width = slicer.Width;