ChartSpace Class

Chart Space. It is the root element of ChartPart.When the object is serialized out as xml, its qualified name is c:chartSpace.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Drawing.Charts.ChartSpace

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(PivotSource))> _
<ChildElementInfoAttribute(GetType(TextProperties))> _
<ChildElementInfoAttribute(GetType(ExternalData))> _
<ChildElementInfoAttribute(GetType(PrintSettings))> _
<ChildElementInfoAttribute(GetType(UserShapesReference))> _
<ChildElementInfoAttribute(GetType(ChartSpaceExtensionList))> _
<ChildElementInfoAttribute(GetType(Date1904))> _
<ChildElementInfoAttribute(GetType(EditingLanguage))> _
<ChildElementInfoAttribute(GetType(RoundedCorners))> _
<ChildElementInfoAttribute(GetType(ChartShapeProperties))> _
<ChildElementInfoAttribute(GetType(Style))> _
<ChildElementInfoAttribute(GetType(ColorMapOverride))> _
<ChildElementInfoAttribute(GetType(Style), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Protection))> _
<ChildElementInfoAttribute(GetType(Chart))> _
Public Class ChartSpace _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As ChartSpace
[ChildElementInfoAttribute(typeof(PivotSource))]
[ChildElementInfoAttribute(typeof(TextProperties))]
[ChildElementInfoAttribute(typeof(ExternalData))]
[ChildElementInfoAttribute(typeof(PrintSettings))]
[ChildElementInfoAttribute(typeof(UserShapesReference))]
[ChildElementInfoAttribute(typeof(ChartSpaceExtensionList))]
[ChildElementInfoAttribute(typeof(Date1904))]
[ChildElementInfoAttribute(typeof(EditingLanguage))]
[ChildElementInfoAttribute(typeof(RoundedCorners))]
[ChildElementInfoAttribute(typeof(ChartShapeProperties))]
[ChildElementInfoAttribute(typeof(Style))]
[ChildElementInfoAttribute(typeof(ColorMapOverride))]
[ChildElementInfoAttribute(typeof(Style), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Protection))]
[ChildElementInfoAttribute(typeof(Chart))]
public class ChartSpace : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • Date1904 <c:date1904>

  • EditingLanguage <c:lang>

  • RoundedCorners <c:roundedCorners>

  • DocumentFormat.OpenXml.Office2010.Drawing.Charts.Style <c14:style>

  • Style <c:style>

  • ColorMapOverride <c:clrMapOvr>

  • PivotSource <c:pivotSource>

  • Protection <c:protection>

  • Chart <c:chart>

  • ChartShapeProperties <c:spPr>

  • TextProperties <c:txPr>

  • ExternalData <c:externalData>

  • PrintSettings <c:printSettings>

  • UserShapesReference <c:userShapes>

  • ChartSpaceExtensionList <c:extLst>

[ISO/IEC 29500-1 1st Edition]

21.2.2.29 chartSpace (Chart Space)

This element specifies overall settings for a single chart, and is the root node for the chart part.

Parent Elements

Root element of DrawingML Chart part

Child Elements

Subclause

chart (Chart)

§21.2.2.27

clrMapOvr (Color Map Override)

§21.2.2.30

date1904 (1904 Date System)

§21.2.2.38

externalData (External Data Relationship)

§21.2.2.63

extLst (Chart Extensibility)

§21.2.2.64

lang (Editing Language)

§21.2.2.87

pivotSource (Pivot Source)

§21.2.2.144

printSettings (Print Settings)

§21.2.2.148

protection (Protection)

§21.2.2.149

roundedCorners (Rounded Corners)

§21.2.2.159

spPr (Shape Properties)

§21.2.2.197

style (Style)

§21.2.2.202

txPr (Text Properties)

§21.2.2.216

userShapes (Reference to Chart Drawing Part)

§21.2.2.221

[Note: The W3C XML Schema definition of this element’s content model (CT_ChartSpace) is located in §A.5.1. end note]

© ISO/IEC29500: 2008.

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

ChartSpace Members

DocumentFormat.OpenXml.Drawing.Charts Namespace