共用方式為


VerticalPosition.RelativeFrom Property

Definition

Vertical Position Relative Base

Represents the following attribute in the schema: relativeFrom

[DocumentFormat.OpenXml.SchemaAttr(0, "relativeFrom")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues> RelativeFrom { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues> RelativeFrom { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "relativeFrom")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues>? RelativeFrom { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("relativeFrom")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues>? RelativeFrom { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues>? RelativeFrom { get; set; }
member this.RelativeFrom : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "relativeFrom")>]
member this.RelativeFrom : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("relativeFrom")>]
member this.RelativeFrom : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalRelativePositionValues> with get, set
Public Property RelativeFrom As EnumValue(Of VerticalRelativePositionValues)

Property Value

Returns EnumValue<T>.

Attributes

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.

Applies to