SlicerCollectionAdd Method (PivotTable, String, Int32) |
Add a new Slicer using PivotTable as data source
Namespace:
Aspose.Cells.Slicers
Assembly:
Aspose.Cells (in Aspose.Cells.dll) Version: 22.5.0.0 (22.5.0)
Syntaxpublic int Add(
PivotTable pivot,
string destCellName,
int baseFieldIndex
)
Public Function Add (
pivot As PivotTable,
destCellName As String,
baseFieldIndex As Integer
) As Integer
public:
int Add(
PivotTable^ pivot,
String^ destCellName,
int baseFieldIndex
)
member Add :
pivot : PivotTable *
destCellName : string *
baseFieldIndex : int -> int
Parameters
- pivot
- Type: Aspose.Cells.PivotPivotTable
PivotTable object - destCellName
- Type: SystemString
The cell in the upper-left corner of the Slicer range. - baseFieldIndex
- Type: SystemInt32
The index of PivotField in PivotTable.BaseFields
Return Value
Type:
Int32The new add Slicer index
Examples[C#]
slicers.Add(pivot, "E20", 0);
See Also