[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
object (Inline Embedded Object)
This element specifies that an embedded object is located at this position in the run’s contents. The layout properties of this embedded object are specified using the VML syntax (§6.1).
[Example: Consider a run which consists of an embedded object 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:object>
…
</w:object>
</w:r>
The object element indicates that an embedded object and its VML positioning data are located at the current position in the run (e.g. an embedded object). end example]
Parent Elements |
Child Elements |
Subclause |
Any element from the urn:schemas-microsoft-com:vml namespace |
§6.1 |
Any element from the urn:schemas-microsoft-com:office:office namespace |
§6.2 |
control (Inline Embedded Control) |
§2.3.3.3 |
Attributes |
Description |
dxaOrig (Original Image Width) |
Specifies the original (natural) width of the image representation of the current control within the document. Some vector image formats do not store a native size within their format, and this attribute shall only be used in those cases to store this information, so that the image may be appropriately restored as needed.
If this element is excluded, then the natural size of the image as stored in its format shall be used.
[Example: Consider the following WordprocessingML for an embedded object:
<w:object w:dxaOrig="3360" w:dyaOrig="2520"> </w:object>
The dxaOrig attribute has a value of 3360, which specifies that the image used for the embedded object doesn't store its native width, but that width should be 3360 twentieths of a point. end example]
The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
dyaOrig (Original Image Height) |
Specifies the original (natural) height of the image representation of the current control within the document. Some vector image formats do not store a native size within their format, and this attribute shall only be used in those cases to store this information, so that the image may be appropriately restored as needed.
If this element is excluded, then the natural size of the image as stored in its format shall be used.
[Example: Consider the following WordprocessingML for an embedded object:
<w:object w:dxaOrig="3360" w:dyaOrig="2520"> </w:object>
The dyaOrig attribute has a value of 2520, which specifies that the image used for the embedded object doesn't store its native height, but that height should be 2520 twentieths of a point. end example]
The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Object">
<complexContent>
<extension base="CT_PictureBase">
<sequence>
<element name="control" type="CT_Control" minOccurs="0"/>
</sequence>
<attribute name="dxaOrig" type="ST_TwipsMeasure" use="optional"/>
<attribute name="dyaOrig" type="ST_TwipsMeasure" use="optional"/>
</extension>
</complexContent>
</complexType>