This documentation is archived and is not being maintained.

Drawing Class

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)

public class Drawing : OpenXmlCompositeElement

The following table lists the possible child types:

  • DocumentFormat.OpenXml.Drawing.Wordprocessing.Anchor <wp:anchor>

  • DocumentFormat.OpenXml.Drawing.Wordprocessing.Inline <wp:inline>

[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:


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 (§; r (§; r (§

Child Elements


anchor (Anchor for Floating DrawingML Object)


inline (Inline DrawingML Object)


[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.