SlicerCollection

SlicerCollection class

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

Properties

NameTypeDescription
CountNumber
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: Number

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
indexNumberThe 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
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn 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
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldIndexNumberThe 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.
baseFieldIndexNumberThe 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
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn 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
indexNumberThe 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
rowNumberRow index of the cell in the upper-left corner of the Slicer range.
columnNumberColumn 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.