SlicerCollection

SlicerCollection class

Specifies the collection of all the Slicer objects on the specified worksheet.

Properties

NameTypeDescription
Countint
Item (int)SlicerGets the Slicer by index.
Item (java.lang.String)SlicerGets the Slicer by slicer’s name.

Methods

NameDescription
removeRemove the specified Slicer
removeAtDeletes the Slicer at the specified index
clear
addAdd a new Slicer using PivotTable as data source
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

SlicerCollection.Count property

Type: int

SlicerCollection.Item (int) property

Gets the Slicer by index.

Type: Slicer

SlicerCollection.Item (java.lang.String) property

Gets the Slicer by slicer’s name.

Type: Slicer

remove(slicer)

Remove the specified Slicer

ParameterTypeDescription
slicerSlicerThe Slicer object

removeAt(index)

Deletes the Slicer at the specified index

ParameterTypeDescription
indexintThe position index in Slicer collection

clear()

add(pivot, destCellName, baseFieldName) (1 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(pivot, row, column, baseFieldName) (2 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(pivot, row, column, baseFieldIndex) (3 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldIndexintThe index of PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(pivot, destCellName, baseFieldIndex) (4 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldIndexintThe index of PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(pivot, row, column, baseField) (5 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(pivot, destCellName, baseField) (6 of 10)

Add a new Slicer using PivotTable as data source

ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell in the upper-left corner of the Slicer range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Returns: The new add Slicer index


add(table, index, destCellName) (7 of 10)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
indexintThe index of ListColumn in ListObject.ListColumns
destCellNameStringThe cell in the upper-left corner of the Slicer range.

Returns: The new add Slicer index


add(table, listColumn, destCellName) (8 of 10)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
listColumnListColumnThe ListColumn in ListObject.ListColumns
destCellNameStringThe cell in the upper-left corner of the Slicer range.

Returns: The new add Slicer index


add(table, listColumn, row, column) (9 of 10)

Add a new Slicer using ListObjet as data source

ParameterTypeDescription
tableListObjectListObject object
listColumnListColumnThe ListColumn in ListObject.ListColumns
rowintRow index of the cell in the upper-left corner of the Slicer range.
columnintColumn index of the cell in the upper-left corner of the Slicer range.

Returns: The new add Slicer index


add(value) (10 of 10)

Reserved for internal use.

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.