Поделиться через


VerticalAlignment Class

Relative Vertical Alignment.When the object is serialized out as xml, its qualified name is wp:align.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.OpenXmlLeafTextElement
        DocumentFormat.OpenXml.Drawing.Wordprocessing.VerticalAlignment

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

Syntax

'Declaration
Public Class VerticalAlignment _
    Inherits OpenXmlLeafTextElement
'Usage
Dim instance As VerticalAlignment
public class VerticalAlignment : OpenXmlLeafTextElement

Remarks

[ISO/IEC 29500-1 1st Edition]

20.4.2.2 align (Relative Vertical Alignment)

This element specifies how a DrawingML object shall be vertically aligned relative to the vertical alignment base defined by the parent element. Once an alignment base is defined, this element shall determine how the DrawingML object shall be aligned relative to that location.

[Example: Consider a picture in a WordprocessingML document which has been aligned relative to the edge of the page - the left of the page horizontally, and the top of the page vertically. This alignment would be specified as follows:

<wp:anchor … >
<wp:positionV relativeFrom="page">
<wp:align>top</wp:align>
</wp:positionH>
…
</wp:anchor>

The align element with a value of top specifies that for the vertical positioning defined by the parent element (in this case, positioning relative to the page), the picture must be aligned to the top edge of the page. end example]

The possible values for this element are defined by the ST_AlignV simple type (§20.4.3.2).

Parent Elements

positionV (§20.4.2.11)

[Note: The W3C XML Schema definition of this element’s content model (ST_AlignV) is located in §A.4.4. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

VerticalAlignment Members

DocumentFormat.OpenXml.Drawing.Wordprocessing Namespace