Style class

Office 2013 and later

Defines the Style Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is c14:style.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Drawing.Charts.Style

Namespace:  DocumentFormat.OpenXml.Office2010.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class Style : OpenXmlLeafElement

2.3.13 style

Target namespace: http://schemas.microsoft.com/office/drawing/2007/8/2/chart

A CT_Style element that specifies a chart style ([ISO/IEC-29500-1] section 21.2).

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

<xsd:element name="style" type="CT_Style"/>

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

2.5.58 CT_Style

Target namespace: http://schemas.microsoft.com/office/drawing/2007/8/2/chart

Referenced by: style

A complex type that specifies a chart style ([ISO/IEC-29500-1] section 21.2).

If this element exists, the CT_Style element ([ISO/IEC-29500-4] section A.5.1) that is a descendent of the CT_ChartSpace element ([ISO/IEC-29500-4] section A.5.1) that is the ancestor of this element MUST exist, SHOULD<126> be ignored, and MUST have a val attribute equal to the val attribute of this element minus 100.

Attributes:

val: An ST_Style attribute that specifies a chart style.

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

<xsd:complexType name="CT_Style">

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

</xsd:complexType>

See section 5.10 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.
Show: