Contents[ Hide ]
Possible Usage Scenarios
If you want to remove slicer in Microsoft Excel, just select it and press the Delete button. Similarly, if you want to remove it using Aspose.Cells API programmatically, please use the Worksheet.Slicers.Remove() method. It will remove the slicer from the worksheet.
The following sample code loads the sample Excel file that contains an existing slicer. It accesses the slicers and then removes it. Finally, it saves the workbook as output Excel file. The following screenshot shows the slicer that will be removed after the execution of the sample code.