Drawing class

Office 2013 and later

DrawingML Object. When the object is serialized out as xml, its qualified name is w:drawing.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

drawing (DrawingML Object)

This element specifies that a DrawingML object is located at this position in the run’s contents. The layout properties of this DrawingML object are specified using the WordprocessingML Drawing syntax (§20.4).

[Example: Consider a run which consists of a picture which is in line with the text in that paragraph (i.e. on the line and affects the line height). That run would be specified using the following WordprocessingML:

<w:r>
  <w:drawing>
    <wp:inline>
      …    </wp:inline>
  </w:drawing>
</w:r>

The drawing element indicates that a DrawingML object and its WordprocessingML Drawing positioning data are located at the current position in the run (e.g. a picture or a chart). end example]

Parent Elements

background (§17.2.1); numPicBullet (§17.9.21); object (§17.3.3.19); r (§22.1.2.87); r (§17.3.2.25)

Child Elements

Subclause

anchor (Anchor for Floating DrawingML Object)

§20.4.2.3

inline (Inline DrawingML Object)

§20.4.2.8

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: