Share via


ChartStyle class

Defines the ChartStyle Class. The root element of ChartStylePart. When the object is serialized out as xml, its qualified name is cs:chartStyle.

Inheritance hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Office15.Drawing.ChartStyle.ChartStyle

Namespace:  DocumentFormat.OpenXml.Office15.Drawing.ChartStyle
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Wall), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(AxisTitle), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(CategoryAxis), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(ChartArea), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataLabel), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataLabelCallout), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataPoint), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataPoint3D), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataPointLine), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataPointMarker), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(MarkerLayoutProperties), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataPointWireframe), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DataTableStyle), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DownBar), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(DropLine), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(ErrorBar), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(Floor), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(GridlineMajor), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(GridlineMinor), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(HiLoLine), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(LeaderLine), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(LegendStyle), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(PlotArea), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(PlotArea3D), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(SeriesAxis), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(SeriesLine), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(TitleStyle), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(TrendlineStyle), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(TrendlineLabel), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(UpBar), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(ValueAxis), FileFormatVersions.Office15)> _
<ChildElementInfoAttribute(GetType(OfficeArtExtensionList), FileFormatVersions.Office15)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office15)> _
Public Class ChartStyle _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As ChartStyle
[ChildElementInfoAttribute(typeof(Wall), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(AxisTitle), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(CategoryAxis), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(ChartArea), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataLabel), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataLabelCallout), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataPoint), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataPoint3D), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataPointLine), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataPointMarker), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(MarkerLayoutProperties), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataPointWireframe), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DataTableStyle), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DownBar), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(DropLine), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(ErrorBar), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(Floor), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(GridlineMajor), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(GridlineMinor), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(HiLoLine), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(LeaderLine), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(LegendStyle), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(PlotArea), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(PlotArea3D), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(SeriesAxis), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(SeriesLine), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(TitleStyle), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(TrendlineStyle), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(TrendlineLabel), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(UpBar), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(ValueAxis), FileFormatVersions.Office15)]
[ChildElementInfoAttribute(typeof(OfficeArtExtensionList), FileFormatVersions.Office15)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office15)]
public class ChartStyle : OpenXmlPartRootElement

Remarks

2.3.52 chartStyle

Target namespace: https://schemas.microsoft.com/office/drawing/2012/chartStyle

A CT_ChartStyle element that specifies the default formatting for all chart elements.

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

<xsd:element name="chartStyle" type="CT_ChartStyle"/>

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

2.5.105 CT_ChartStyle

Target namespace: https://schemas.microsoft.com/office/drawing/2012/chartStyle

Referenced by: chartStyle

A complex type that specifies visual and text properties for all elements present on a chart.

Child Elements:

axisTitle: A CT_StyleEntry element that specifies default formatting for an axis title.

categoryAxis: A CT_StyleEntry element that specifies default formatting for a category axis.

chartArea: A CT_StyleEntry element that specifies default formatting for a chart area.

dataLabel: A CT_StyleEntry element that specifies default formatting for a data label.

dataPoint: A CT_StyleEntry element that specifies default formatting for a data point on a 2-D chart of type column, bar, filled radar, stock, bubble, pie, doughnut, and area as well as 3-D bubble.

dataPoint3D: A CT_StyleEntry element that specifies default formatting for a data point on a 3-D chart of type column, bar, line, pie, area and surface.

dataPointLine: A CT_StyleEntry element that specifies default formatting for a data point on a 2-D chart of type line, scatter and radar.

dataPointMarker: A CT_StyleEntry element that specifies default formatting for markers.

dataPointMarkerLayout: A CT_MarkerLayout element that specifies additional marker properties not present in dataPointMarker.

dataPointWireframe: A CT_StyleEntry element that specifies default formatting for a data point on a surface wireframe chart.

dataTable: A CT_StyleEntry element that specifies default formatting for a data table.

downBar: A CT_StyleEntry element that specifies default formatting for a down bar.

dropLine: A CT_StyleEntry element that specifies default formatting for a drop line.

errorBar: A CT_StyleEntry element that specifies default formatting for an error bar.

floor: A CT_StyleEntry element that specifies default formatting for a floor.

gridlineMajor: A CT_StyleEntry element that specifies default formatting for a major gridline.

gridlineMinor: A CT_StyleEntry element that specifies default formatting for a minor gridline.

hiLoLine: A CT_StyleEntry element that specifies default formatting for a high low line.

leaderLine: A CT_StyleEntry element that specifies default formatting for a leader line.

legend: A CT_StyleEntry element that specifies default formatting for a legend.

plotArea: A CT_StyleEntry element that specifies default formatting for a plot area on a 2-D chart.

plotArea3D: A CT_StyleEntry element that specifies default formatting for a 3-D chart.

seriesAxis: A CT_StyleEntry element that specifies default formatting for a series axis.

seriesLine: A CT_StyleEntry element that specifies default formatting for a series line.

title: A CT_StyleEntry element that specifies default formatting for a chart title.

trendline: A CT_StyleEntry element that specifies default formatting for a trend line.

trendlineLabel: A CT_StyleEntry element that specifies default formatting for a trend line label.

upBar: A CT_StyleEntry element that specifies default formatting for an up bar.

valueAxis: A CT_StyleEntry element that specifies default formatting for a value axis.

wall: A CT_StyleEntry element that specifies default formatting for a wall.

extLst: A CT_OfficeArtExtensionList ([ISO/IEC-29500-1] section A.4.1) element that specifies the extension list in which all future extensions of element type ext are defined. The extension list, along with corresponding future extensions, is used to extend the storage capabilities of the DrawingML framework. This enables new types of data to be stored natively within the framework.

Attributes:

id: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies the identifier for this CT_ChartStyle.

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

<xsd:complexType name="CT_ChartStyle">

<xsd:sequence>

<xsd:element name="axisTitle" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="categoryAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="chartArea" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataLabel" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPoint" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPoint3D" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointMarker" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointMarkerLayout" type="CT_MarkerLayout" minOccurs="0" maxOccurs="1"/>

<xsd:element name="dataPointWireframe" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataTable" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="downBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dropLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="errorBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="floor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="gridlineMajor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="gridlineMinor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="hiLoLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="leaderLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="legend" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="plotArea" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="plotArea3D" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="seriesAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="seriesLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="title" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="trendline" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="trendlineLabel" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="upBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="valueAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="wall" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="id" type="xsd:unsignedInt" use="optional"/>

</xsd:complexType>

See section 5.16 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.

See also

Reference

ChartStyle members

DocumentFormat.OpenXml.Office15.Drawing.ChartStyle namespace