[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicer.Height

Height Property

Height

Gets or sets the height of the slicer, in points.

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

Declaration
double Height { get; set; }
Property Height As Double
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", 30, 100, 120, 180);
double height = slicer.Height;