Freigeben über


VerticalTextAlignmentOnPage.Val Eigenschaft

Definition

Einstellung für vertikale Ausrichtung

Stellt das folgende Attribut im Schema dar: w:val

[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues> Val { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues> Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues>? Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:val")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues>? Val { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues>? Val { get; set; }
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "val")>]
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:val")>]
member this.Val : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.VerticalJustificationValues> with get, set
Public Property Val As EnumValue(Of VerticalJustificationValues)

Eigenschaftswert

Gibt zurück EnumValue<T>.

Attribute

Hinweise

Die folgenden Informationen aus dem INTERNATIONALEN ECMA-Standard ECMA-376 können bei der Arbeit mit dieser Klasse nützlich sein.

Gibt die vertikale Ausrichtung für Text zwischen dem oberen und unteren Rand des übergeordneten Containers (Seiten- oder Tabellenzelle) an.

Stellen Sie sich einen Bereich vor, in dem der Text im übergeordneten Element vertikal zentriert werden soll. Dies würde den val Wert erfordern center, um anzugeben, dass alle vertikalen Begründungen relativ zum übergeordneten Element zentriert werden sollen. Für einen Abschnitt würde diese Einstellung wie folgt angegeben:

<w:vAlign w:val="center" />  

Das val -Attribut von center gibt an, dass der Inhalt relativ zum Container (in diesem Fall die Seite) zentriert ist.

Die möglichen Werte für dieses Attribut werden durch den ST_VerticalJc einfachen Typ definiert.

Gilt für: