Legend Class
Legend.When the object is serialized out as xml, its qualified name is c:legend.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Charts.Legend
Namespace: DocumentFormat.OpenXml.Drawing.Charts
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(TextProperties))> _
<ChildElementInfoAttribute(GetType(Layout))> _
<ChildElementInfoAttribute(GetType(Overlay))> _
<ChildElementInfoAttribute(GetType(ChartShapeProperties))> _
<ChildElementInfoAttribute(GetType(LegendPosition))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(LegendEntry))> _
Public Class Legend _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Legend
[ChildElementInfoAttribute(typeof(TextProperties))]
[ChildElementInfoAttribute(typeof(Layout))]
[ChildElementInfoAttribute(typeof(Overlay))]
[ChildElementInfoAttribute(typeof(ChartShapeProperties))]
[ChildElementInfoAttribute(typeof(LegendPosition))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(LegendEntry))]
public class Legend : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
LegendPosition <c:legendPos>
LegendEntry <c:legendEntry>
Layout <c:layout>
Overlay <c:overlay>
ChartShapeProperties <c:spPr>
TextProperties <c:txPr>
ExtensionList <c:extLst>
[ISO/IEC 29500-1 1st Edition]
21.2.2.93 legend (Legend)
This element specifies the legend.
Parent Elements |
---|
chart (§21.2.2.27) |
Child Elements |
Subclause |
---|---|
extLst (Chart Extensibility) |
§21.2.2.64 |
layout (Layout) |
§21.2.2.88 |
legendEntry (Legend Entry) |
§21.2.2.94 |
legendPos (Legend Position) |
§21.2.2.95 |
overlay (Overlay) |
§21.2.2.132 |
spPr (Shape Properties) |
§21.2.2.197 |
txPr (Text Properties) |
§21.2.2.216 |
[Note: The W3C XML Schema definition of this element’s content model (CT_Legend) 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.