Partager via


GraphicElement Class

Graphic Element.When the object is serialized out as xml, its qualified name is p:graphicEl.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.GraphicElement

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Diagram))> _
<ChildElementInfoAttribute(GetType(Chart))> _
Public Class GraphicElement _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As GraphicElement
[ChildElementInfoAttribute(typeof(Diagram))]
[ChildElementInfoAttribute(typeof(Chart))]
public class GraphicElement : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.Diagram <a:dgm>

  • DocumentFormat.OpenXml.Drawing.Chart <a:chart>

[ISO/IEC 29500-1 1st Edition]

19.5.45 graphicEl (Graphic Element)

This element specifies a graphical element which to animate.

[Example: Consider a diagram with an animation effect applied to it. The <graphicEl> element should be used as follows:

  <p:set>
    <p:cBhvr>
      <p:cTn id="6" dur="1" fill="hold"> … </p:cTn>
      <p:tgtEl>
        <p:spTgt spid="4">
          <p:graphicEl>
            <a:dgm id="{87C2C707-C3F4-4E81-A967-A8B8AE13E575}"/>
          </p:graphicEl>
        </p:spTgt>
      </p:tgtEl>
      <p:attrNameLst> … </p:attrNameLst>
    </p:cBhvr>
    <p:to> … </p:to>
  </p:set>

end example]

Parent Elements

spTgt (§19.5.72)

Child Elements

Subclause

chart (Chart to Animate)

§20.1.2.2.3

dgm (Diagram to Animate)

§20.1.2.2.12

[Note: The W3C XML Schema definition of this element’s content model (CT_AnimationElementChoice) is located in §A.4.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

GraphicElement Members

DocumentFormat.OpenXml.Presentation Namespace