다음을 통해 공유


HorizontalPosition.RelativeFrom Property

Definition

Horizontal Position Relative Base

Represents the following attribute in the schema: relativeFrom

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

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 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.

Applies to