Partager via


PieChart Class

Pie Charts.When the object is serialized out as xml, its qualified name is c:pieChart.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Charts.PieChart

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(VaryColors))> _
<ChildElementInfoAttribute(GetType(DataLabels))> _
<ChildElementInfoAttribute(GetType(FirstSliceAngle))> _
<ChildElementInfoAttribute(GetType(PieChartSeries))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class PieChart _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As PieChart
[ChildElementInfoAttribute(typeof(VaryColors))]
[ChildElementInfoAttribute(typeof(DataLabels))]
[ChildElementInfoAttribute(typeof(FirstSliceAngle))]
[ChildElementInfoAttribute(typeof(PieChartSeries))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class PieChart : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • VaryColors <c:varyColors>

  • PieChartSeries <c:ser>

  • DataLabels <c:dLbls>

  • FirstSliceAngle <c:firstSliceAng>

  • ExtensionList <c:extLst>

[ISO/IEC 29500-1 1st Edition]

21.2.2.141 pieChart (Pie Charts)

This element contains the 2-D pie series for this chart.

Parent Elements

plotArea (§21.2.2.145)

Child Elements

Subclause

dLbls (Data Labels)

§21.2.2.49

extLst (Chart Extensibility)

§21.2.2.64

firstSliceAng (First Slice Angle)

§21.2.2.68

ser (Pie Chart Series)

§21.2.2.172

varyColors (Vary Colors by Point)

§21.2.2.227

[Note: The W3C XML Schema definition of this element’s content model (CT_PieChart) 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

PieChart Members

DocumentFormat.OpenXml.Drawing.Charts Namespace