Slicer
Slicer class
summary description of Slicer View
Properties
| Name | Type | Description |
|---|---|---|
| SortOrderType | int | The value of the property is SortOrder integer constant. |
| ShowMissing | boolean | |
| ShowTypeOfItemsWithNoData | int | The value of the property is ItemsWithNoDataShowMode integer constant. |
| ShowAllItems | boolean | |
| Title | String | Specifies the title of the current Slicer object. |
| AlternativeText | String | Returns or sets the descriptive (alternative) text string of the Slicer object. |
| IsPrintable | boolean | Indicates whether the slicer object is printable. |
| IsLocked | boolean | Indicates whether the slicer shape is locked. |
| Placement | int | Represents the way the drawing object is attached to the cells below it. The property controls the placement of an objec |
| LockedAspectRatio | boolean | Indicates whether locking aspect ratio. |
| LockedPosition | boolean | Indicates whether the specified slicer can be moved or resized by using the user interface. |
| Shape | SlicerShape | Returns the Shape object associated with the specified slicer. Read-only. |
| SlicerCache | SlicerCache | Returns the SlicerCache object associated with the slicer. Read-only. |
| Parent | Worksheet | Returns the Worksheet object which contains this slicer. Read-only. |
| Worksheet | Worksheet | |
| StyleType | int | Specify the type of Built-in slicer style the default type is SlicerStyleLight1 The value of the property is SlicerStyle |
| Name | String | Returns or sets the name of the specified slicer |
| Caption | String | Returns or sets the caption of the specified slicer. |
| FirstItemIndex | int | |
| CaptionVisible | boolean | Returns or sets whether the header that displays the slicer Caption is visible the default value is true |
| ShowCaption | boolean | |
| NumberOfColumns | int | Returns or sets the number of columns in the specified slicer. |
| LeftPixel | int | Returns or sets the horizontal offset of slicer shape from its left column, in pixels. |
| TopPixel | int | Returns or sets the vertical offset of slicer shape from its top row, in pixels. |
| Width | float | Returns or sets the width of the specified slicer, in points. |
| WidthPixel | int | Returns or sets the width of the specified slicer, in pixels. |
| Height | float | Returns or sets the height of the specified slicer, in points. |
| HeightPixel | int | Returns or sets the height of the specified slicer, in pixels. |
| ColumnWidthPixel | int | Gets or sets the width in unit of pixels for each column of the slicer. |
| ColumnWidth | float | Returns or sets the width, in points, of each column in the slicer. |
| RowHeightPixel | int | Returns or sets the height, in pixels, of each row in the specified slicer. |
| RowHeight | float | Returns or sets the height, in points, of each row in the specified slicer. |
Methods
| Name | Description |
|---|---|
| addPivotConnection | Adds PivotTable connection. |
| removePivotConnection | Removes PivotTable connection. |
| refresh | Refreshing 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.
| Parameter | Type | Description |
|---|---|---|
| pivot | PivotTable | The PivotTable object |
removePivotConnection(pivot)
Removes PivotTable connection.
| Parameter | Type | Description |
|---|---|---|
| pivot | PivotTable | The PivotTable object |
refresh()
Refreshing the slicer.Meanwhile, Refreshing and Calculating relative PivotTables.