SlicerCollectionAdd Method (PivotTable, String, String)

Add a new Slicer using PivotTable as data source

Namespace:  Aspose.Cells.Slicers
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public int Add(
	PivotTable pivot,
	string destCellName,
	string baseFieldName
)

Parameters

pivot
Type: Aspose.Cells.PivotPivotTable
PivotTable object
destCellName
Type: SystemString
The cell in the upper-left corner of the Slicer range.
baseFieldName
Type: SystemString
The name of PivotField in PivotTable.BaseFields

Return Value

Type: Int32
The new add Slicer index
See Also