SlicerCollectionAdd Method (PivotTable, Int32, Int32, PivotField)

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,
	PivotField baseField
)

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.
baseField
Type: Aspose.Cells.PivotPivotField
The PivotField in PivotTable.BaseFields

Return Value

Type: Int32
The new add Slicer index
See Also