Edytuj

Udostępnij za pośrednictwem


SlicerCache Interface

Definition

Represents the current filter state for a slicer and information about which PivotCache or WorkbookConnection the slicer is connected to.

public interface class SlicerCache
[System.Runtime.InteropServices.Guid("000244C4-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface SlicerCache
Public Interface SlicerCache
Attributes

Remarks

Use the SlicerCaches property of the _Workbook object to access the collection of SlicerCache objects in a workbook.

Each slicer has a base SlicerCache object which represents the items displayed in the slicer and the current user interface state of the tiles displayed with their corresponding item captions. Each slicer control that the user sees in Excel is represented by a Slicer object that has a SlicerCache object associated with it.

Properties

Application

When used without an object qualifier, this property gets an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property gets an Application object that represents the creator of the specified object.

Creator

Gets a 32-bit integer that indicates the application in which this object was created.

CrossFilterType

Gets or sets whether a slicer is participating in cross filtering with other slicers that share the same slicer cache, and how cross filtering is displayed.

FilterCleared

Returns whether the slicer or timeline filter state is cleared. Boolean (bool in C#). Read-only

Index

Gets the index of the specified SlicerCache object in the SlicerCaches collection.

List

True if the slicer cache is for a slicer on a table. False otherwise. Boolean (bool in C#) Read-only

ListObject

Returns a ListObject object for the QueryTable object. Read-only

Name

Gets or sets the name of the slicer cache.

OLAP

Gets whether the slicer associated with the specified slicer cache is based on an OLAP data source.

Parent

Gets the parent SlicerCaches object for the specified SlicerCache object.

PivotTables

Gets a SlicerPivotTables collection that contains information about the PivotTables the slicer cache is currently filtering.

RequireManualUpdate

True when manual updates of the slicer cache required. Boolean (bool in C#) Read/Write

ShowAllItems

Gets or sets whether slicers connected to the specified slicer cache display items that have been deleted from in the corresponding PivotCache.

SlicerCacheLevels

Gets the collection of SlicerCacheLevel objects that represent the levels of an OLAP hierarchy on which the specified slicer cache is based.

SlicerCacheType

Returns the type of the slicer cache – slicer or timeline. Read-only

SlicerItems

Gets a SlicerItems collection that contains the collection of all items in the slicer cache.

Slicers

Gets a Slicers collection that contains the collection of Slicer objects associated with the specified SlicerCache.

SortItems

Gets or sets whether the items in the slicer are sorted.

SortUsingCustomLists

Gets or sets whether items in the specified slicer cache will be sorted by the custom lists.

SourceName

Gets the name of the data source the slicer is connected to.

SourceType

Gets the kind of data source the slicer is connected to.

TimelineState

The timeline-specific state of the SlicerCache object. Read-only

VisibleSlicerItems

Gets a SlicerItems collection that contains the collection of all the visible items in the specified slicer cache.

VisibleSlicerItemsList

Gets or sets the list of MDX unique names for members at all levels of the hierarchy where manual filtering is applied.

WorkbookConnection

Gets a WorkbookConnection object that represents the data connection used by the specified slicer.

Methods

ClearAllFilters()

Clears the filter for either slicer or timeline, depending on the slicer cache type.

ClearDateFilter()

Clears the filter for a timeline (date filter).

ClearManualFilter()

Clears the filtering of all slicers associated with the specified slicer cache.

Delete()

Deletes the specified slicer cache and the slicers associated with it.

Applies to