SlicerStyleElement class

Office 2013 and later

Defines the SlicerStyleElement Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:slicerStyleElement.


Namespace:  DocumentFormat.OpenXml.Office2010.Excel
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class SlicerStyleElement : OpenXmlLeafElement

2.6.45 CT_SlicerStyleElement

Target namespace:

Referenced by: CT_SlicerStyleElements

A complex type that specifies a table style element, as specified in [ISO/IEC-29500-1] section 18.8, of a slicer style, as specified in section


type: An ST_SlicerStyleType attribute, as specified in section 2.7.13, that specifies the type of the table style element. This attribute MUST be unique within the parent CT_SlicerStyleElements complex type.

dxfId: An ST_DxfId attribute, as specified in [ISO/IEC-29500-1] section 18.18.25, that specifies a zero-based index for the list of elements specified by the dxfs global element, as specified in section 2.4.24. The specified CT_Dxf complex type, as specified in [ISO/IEC-29500-4] section A.2, specifies the formatting to use with this table style element.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_SlicerStyleElement">

<xsd:attribute name="type" type="ST_SlicerStyleType" use="required"/>

<xsd:attribute name="dxfId" type="x:ST_DxfId" use="optional"/>


See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.