Share via


SlicerCache.ShowAllItems Property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ShowAllItems As Boolean
    Get
    Set
'Usage
Dim instance As SlicerCache
Dim value As Boolean

value = instance.ShowAllItems

instance.ShowAllItems = value
bool ShowAllItems { get; set; }

Property Value

Type: System.Boolean
true if slicers connected to the specified slicer cache display items that have been deleted from in the corresponding PivotCache; otherwise, false. The default is true.

Remarks

Read/write.

When the ShowAllItems property is set to true (the default), items that have been deleted from the source data are displayed in the slicers connected to the specified slicer cache. The ShowAllItems property corresponds to the setting of the Show items deleted from the data source check box in the Slicer Settings dialog box.

The ShowAllItems property applies only to slicers that are based on workbook ranges or lists (SlicerCache.SourceType = xlDatabase), or to slicers that are based on relational data sources (SlicerCache.SourceType = xlExternal and SlicerCache.OLAP = false). Attempting to set the ShowAllItems property for slicers that are connected to PivotTables based on external OLAP data sources (SlicerCache.OLAP = true) generates a run-time error.

See Also

Reference

SlicerCache Interface

SlicerCache Members

Microsoft.Office.Interop.Excel Namespace