Slicer

Slicer class

summary description of Slicer View

Properties

NameTypeDescription
SortOrderTypeintThe value of the property is SortOrder integer constant.
ShowMissingboolean
ShowTypeOfItemsWithNoDataintThe value of the property is ItemsWithNoDataShowMode integer constant.
ShowAllItemsboolean
TitleStringSpecifies the title of the current Slicer object.
AlternativeTextStringReturns or sets the descriptive (alternative) text string of the Slicer object.
IsPrintablebooleanIndicates whether the slicer object is printable.
IsLockedbooleanIndicates whether the slicer shape is locked.
PlacementintRepresents the way the drawing object is attached to the cells below it. The property controls the placement of an objec
LockedAspectRatiobooleanIndicates whether locking aspect ratio.
LockedPositionbooleanIndicates whether the specified slicer can be moved or resized by using the user interface.
ShapeSlicerShapeReturns the Shape object associated with the specified slicer. Read-only.
SlicerCacheSlicerCacheReturns the SlicerCache object associated with the slicer. Read-only.
ParentWorksheetReturns the Worksheet object which contains this slicer. Read-only.
WorksheetWorksheet
StyleTypeintSpecify the type of Built-in slicer style the default type is SlicerStyleLight1 The value of the property is SlicerStyle
NameStringReturns or sets the name of the specified slicer
CaptionStringReturns or sets the caption of the specified slicer.
FirstItemIndexint
CaptionVisiblebooleanReturns or sets whether the header that displays the slicer Caption is visible the default value is true
ShowCaptionboolean
NumberOfColumnsintReturns or sets the number of columns in the specified slicer.
LeftPixelintReturns or sets the horizontal offset of slicer shape from its left column, in pixels.
TopPixelintReturns or sets the vertical offset of slicer shape from its top row, in pixels.
WidthfloatReturns or sets the width of the specified slicer, in points.
WidthPixelintReturns or sets the width of the specified slicer, in pixels.
HeightfloatReturns or sets the height of the specified slicer, in points.
HeightPixelintReturns or sets the height of the specified slicer, in pixels.
ColumnWidthPixelintGets or sets the width in unit of pixels for each column of the slicer.
ColumnWidthfloatReturns or sets the width, in points, of each column in the slicer.
RowHeightPixelintReturns or sets the height, in pixels, of each row in the specified slicer.
RowHeightfloatReturns or sets the height, in points, of each row in the specified slicer.

Methods

NameDescription
addPivotConnectionAdds PivotTable connection.
removePivotConnectionRemoves PivotTable connection.
refreshRefreshing the slicer.Meanwhile, Refreshing and Calculating relative PivotTables.
selectItems
unselectItems
clearFilter

Slicer.SortOrderType property

The value of the property is SortOrder integer constant.

Type: int

Slicer.ShowMissing property

Type: boolean

Slicer.ShowTypeOfItemsWithNoData property

The value of the property is ItemsWithNoDataShowMode integer constant.

Type: int

Slicer.ShowAllItems property

Type: boolean

Slicer.Title property

Specifies the title of the current Slicer object.

Type: String

Slicer.AlternativeText property

Returns or sets the descriptive (alternative) text string of the Slicer object.

Type: String

Slicer.IsPrintable property

Indicates whether the slicer object is printable.

Type: boolean

Slicer.IsLocked property

Indicates whether the slicer shape is locked.

Type: boolean

Slicer.Placement property

Represents the way the drawing object is attached to the cells below it. The property controls the placement of an object on a worksheet. The value of the property is PlacementType integer constant.

Type: int

Slicer.LockedAspectRatio property

Indicates whether locking aspect ratio.

Type: boolean

Slicer.LockedPosition property

Indicates whether the specified slicer can be moved or resized by using the user interface.

Type: boolean

Slicer.Shape property

Returns the Shape object associated with the specified slicer. Read-only.

Type: SlicerShape

Slicer.SlicerCache property

Returns the SlicerCache object associated with the slicer. Read-only.

Type: SlicerCache

Slicer.Parent property

Returns the Worksheet object which contains this slicer. Read-only.

Type: Worksheet

Slicer.Worksheet property

Type: Worksheet

Slicer.StyleType property

Specify the type of Built-in slicer style the default type is SlicerStyleLight1 The value of the property is SlicerStyleType integer constant.

Type: int

Slicer.Name property

Returns or sets the name of the specified slicer

Type: String

Slicer.Caption property

Returns or sets the caption of the specified slicer.

Type: String

Slicer.FirstItemIndex property

Type: int

Slicer.CaptionVisible property

Returns or sets whether the header that displays the slicer Caption is visible the default value is true

Type: boolean

Slicer.ShowCaption property

Type: boolean

Slicer.NumberOfColumns property

Returns or sets the number of columns in the specified slicer.

Type: int

Slicer.LeftPixel property

Returns or sets the horizontal offset of slicer shape from its left column, in pixels.

Type: int

Slicer.TopPixel property

Returns or sets the vertical offset of slicer shape from its top row, in pixels.

Type: int

Slicer.Width property

Returns or sets the width of the specified slicer, in points.

Type: float

Slicer.WidthPixel property

Returns or sets the width of the specified slicer, in pixels.

Type: int

Slicer.Height property

Returns or sets the height of the specified slicer, in points.

Type: float

Slicer.HeightPixel property

Returns or sets the height of the specified slicer, in pixels.

Type: int

Slicer.ColumnWidthPixel property

Gets or sets the width in unit of pixels for each column of the slicer.

Type: int

Slicer.ColumnWidth property

Returns or sets the width, in points, of each column in the slicer.

Type: float

Slicer.RowHeightPixel property

Returns or sets the height, in pixels, of each row in the specified slicer.

Type: int

Slicer.RowHeight property

Returns or sets the height, in points, of each row in the specified slicer.

Type: float

addPivotConnection(pivot)

Adds PivotTable connection.

ParameterTypeDescription
pivotPivotTableThe PivotTable object

removePivotConnection(pivot)

Removes PivotTable connection.

ParameterTypeDescription
pivotPivotTableThe PivotTable object

refresh()

Refreshing the slicer.Meanwhile, Refreshing and Calculating relative PivotTables.

selectItems(labels, append)

unselectItems(labels)

clearFilter()