Drawing Class
DrawingML Object.When the object is serialized out as xml, its qualified name is w:drawing.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.Drawing
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(Anchor))> _
<ChildElementInfoAttribute(GetType(Inline))> _
Public Class Drawing _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Drawing
[ChildElementInfoAttribute(typeof(Anchor))]
[ChildElementInfoAttribute(typeof(Inline))]
public class Drawing : OpenXmlCompositeElement
Remarks
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]
17.3.3.9 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.
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.