HorizontalPosition.RelativeFrom Property
Horizontal Position Relative Base.Represents the attribte in schema: relativeFrom
Namespace: DocumentFormat.OpenXml.Drawing.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
<SchemaAttrAttribute(, "relativeFrom")> _
Public Property RelativeFrom As EnumValue(Of HorizontalRelativePositionValues)
Get
Set
'Uso
Dim instance As HorizontalPosition
Dim value As EnumValue(Of HorizontalRelativePositionValues)
value = instance.RelativeFrom
instance.RelativeFrom = value
[SchemaAttrAttribute(, "relativeFrom")]
public EnumValue<HorizontalRelativePositionValues> RelativeFrom { get; set; }
Property Value
Type: DocumentFormat.OpenXml.EnumValue<HorizontalRelativePositionValues>
Returns EnumValue<T>.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the base to which the relative horizontal positioning of this object shall be calculated.
Consider a DrawingML picture which shall be displayed at the bottom center of the page. This object would be specified as follows:
<wp:anchor … >
<wp:positionH relativeFrom="page">
<wp:align>center</wp:align>
</wp:positionH>
…
</wp:anchor>
The relativeFrom attribute specifies that the object is horizontally positioned relative to the page.
The possible values for this attribute are defined by the ST_RelFromH simple type.