TableSlicerCache class
Defines the TableSlicerCache Class.This class is only available in O15. When the object is serialized out as xml, its qualified name is x15:tableSlicerCache.
Inheritance hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office15.Excel.TableSlicerCache
Namespace: DocumentFormat.OpenXml.Office15.Excel
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(ExtensionList), FileFormatVersions.Office15)> _
Public Class TableSlicerCache _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As TableSlicerCache
[OfficeAvailabilityAttribute(FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(ExtensionList), FileFormatVersions.Office15)]
public class TableSlicerCache : OpenXmlCompositeElement
Remarks
2.4.52 tableSlicerCache
Target namespace: https://schemas.microsoft.com/office/spreadsheetml/2010/11/main
A CT_TableSlicerCache element that specifies a table data source (1) for the slicer cache.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="tableSlicerCache" type="CT_TableSlicerCache"/>
See section 5.3 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.6.107 CT_TableSlicerCache
Target namespace: https://schemas.microsoft.com/office/spreadsheetml/2010/11/main
Referenced by: tableSlicerCache
A complex type that specifies properties of the slicer cache specific to table slicer items.
Child Elements:
extLst: A CT_ExtensionList ([ISO/IEC-29500-4] section A.2) element that specifies future extensibility for this element.
Attributes:
tableId: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies the associated Table ([ISO/IEC-29500-1] section 18.5.1.2). MUST match id attribute of an existing Table ([ISO/IEC-29500-1] section 18.5.1.2) element.
column: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies associated TableColumn ([ISO/IEC-29500-1] section 18.5.1.3). MUST match id attribute of an existing tableColumn element representing a column in Table specified by the tableId attribute.
sortOrder: An ST_TabularSlicerCacheSortOrder attribute that specifies how the table slicer items are sorted in the slicer view.
customListSort: A boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether custom lists are used when sorting the table slicer items.
Value |
Meaning |
"false" |
Custom lists are not used when sorting the table slicer items. |
"true" |
Custom lists are used when sorting the table slicer items. |
crossFilter: An ST_SlicerCacheCrossFilter attribute that specifies how the table slicer items that are used in slicer cross filtering are displayed.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_TableSlicerCache">
<xsd:sequence>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="tableId" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="column" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="sortOrder" type="x14:ST_TabularSlicerCacheSortOrder" use="optional" default="ascending"/>
<xsd:attribute name="customListSort" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="crossFilter" type="x14:ST_SlicerCacheCrossFilter" use="optional" default="showItemsWithDataAtTop"/>
</xsd:complexType>
See section 5.3 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.