SlicerCollectionAdd Method (PivotTable, Int32, Int32, 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,
	int row,
	int column,
	string baseFieldName
)

Parameters

pivot
Type: Aspose.Cells.PivotPivotTable
PivotTable object
row
Type: SystemInt32
Row index of the cell in the upper-left corner of the Slicer range.
column
Type: SystemInt32
Column index of 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