EmbeddedObject.DyaOriginal property

Office 2013 and later

dyaOrig.Represents the following attribute in the schema: w:dyaOrig

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

[SchemaAttrAttribute(, "dyaOrig")]
public StringValue DyaOriginal { get; set; }

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

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.

Consider the following WordprocessingML for an embedded object:

<w:object w:dxaOrig="3360" w:dyaOrig="2520">
  …
  <v:shape … style="width:168pt;height:4in">
    …
  </v:shape>
  <o:OLEObject … />
</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.

The possible values for this attribute are defined by the ST_TwipsMeasure simple type.

Show: