Compartir a través de


Drawing Class

Defines the Drawing Class. It is the root element of DiagramPersistLayoutPart.When the object is serialized out as xml, its qualified name is dsp:drawing.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Office.Drawing.Drawing

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

Syntax

'Declaración
<ChildElementInfoAttribute(GetType(ShapeTree))> _
Public Class Drawing _
    Inherits OpenXmlPartRootElement
'Uso
Dim instance As Drawing
[ChildElementInfoAttribute(typeof(ShapeTree))]
public class Drawing : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • ShapeTree <dsp:spTree>

2.3.20 drawing

Target namespace: https://schemas.microsoft.com/office/drawing/2008/diagram

A CT_Drawing element that specifies the last successful output of diagram layout. This element is the root element of the Diagram Layout part (see 2.1.1 Diagram Layout).

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

<xsd:element name="drawing" type="CT_Drawing"/>

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

2.5.54 CT_Drawing

Target namespace: https://schemas.microsoft.com/office/drawing/2008/diagram

Referenced by: drawing

This element specifies a visual representation of the last successful layout for a diagram.

Child Elements:

spTree : A CT_GroupShape element that specifies the top level group shape which represents the last output of layout.

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

<xsd:complexType name="CT_Drawing">

<xsd:sequence>

<xsd:element name="spTree" type="CT_GroupShape" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

See section 5.8 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

Drawing Members

DocumentFormat.OpenXml.Office.Drawing Namespace