Freigeben über


HorizontalAlignment-Klasse

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

Vererbungshierarchie

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

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

Syntax

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

20.4.2.1 align (Relative Horizontal Alignment)

This element specifies how a DrawingML object shall be horizontally aligned relative to the horizontal 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:positionH relativeFrom="page">
<wp:align>left</wp:align>
</wp:positionH>
…
</wp:anchor>

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

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

Parent Elements

positionH (§20.4.2.10)

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

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

HorizontalAlignment-Member

DocumentFormat.OpenXml.Drawing.Wordprocessing-Namespace