EmbeddedObject.DyaOriginal Property
dyaOrig.Represents the attribte in schema: w:dyaOrig
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "dyaOrig")> _
Public Property DyaOriginal As StringValue
Get
Set
'Usage
Dim instance As EmbeddedObject
Dim value As StringValue
value = instance.DyaOriginal
instance.DyaOriginal = value
[SchemaAttrAttribute(, "dyaOrig")]
public StringValue DyaOriginal { get; set; }
Property Value
Type: DocumentFormat.OpenXml.StringValue
Returns UInt64Value.
Remarks
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.