Partager via


VerticalPosition.RelativeFrom Property

Vertical Position Relative Base.Represents the attribte in schema: relativeFrom

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

Syntax

'Declaration
<SchemaAttrAttribute(, "relativeFrom")> _
Public Property RelativeFrom As EnumValue(Of VerticalRelativePositionValues)
    Get
    Set
'Usage
Dim instance As VerticalPosition
Dim value As EnumValue(Of VerticalRelativePositionValues)

value = instance.RelativeFrom

instance.RelativeFrom = value
[SchemaAttrAttribute(, "relativeFrom")]
public EnumValue<VerticalRelativePositionValues> RelativeFrom { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<VerticalRelativePositionValues>
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 vertical positioning of this object shall be calculated.

Consider a DrawingML picture which shall be displayed at the bottom center of the page margins. This object would be specified as follows:

<wp:anchor … >
  …
  <wp:positionV relativeFrom="margin">
    <wp:align>bottom</wp:align>
  </wp:positionV>
</wp:anchor>

The relativeFrom attribute specifies that the object is horizontally positioned relative to the margin.

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

See Also

Reference

VerticalPosition Class

VerticalPosition Members

DocumentFormat.OpenXml.Drawing.Wordprocessing Namespace