# Modify Table Layout for Slicer Style

Use DsExcel to modify the table layout for the slicer style applied in your spreadsheet by modifying some settings like row height, display header, etc.

## Content

You can modify the table layout for the slicer style applied in your spreadsheet by modifying some settings including the [RowHeight property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ISlicer.RowHeight.html) and [DisplayHeader property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ISlicer.DisplayHeader.html) of the [ISlicer interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ISlicer.html).
Refer to the following example code to modify table layout for slicer style.

```csharp
//create slicer cache for table.
ISlicerCache cache = workbook.SlicerCaches.Add(table, "Category", "categoryCache");

//add slicer
ISlicer slicer1 = cache.Slicers.Add(workbook.Worksheets["Sheet1"], "cate1", "Category", 200, 200, 100, 200);

slicer1.NumberOfColumns = 2;
//slicer1.ColumnWidth = 10;
slicer1.RowHeight = 50;
slicer1.DisplayHeader = false;
```