Udostępnij za pośrednictwem


TextAlignment.Val Property

Definition

Vertical Character Alignment Position

Represents the following attribute in the schema: w:val

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

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 type of vertical alignment which shall be used to align the characters on each line in the current paragraph.

Consider a paragraph of text of different font sizes which shall be aligned based on the baseline point of each character in each line. This requirement would be specified as follows in the WordprocessingML:

<w:pPr>  
  <w:textAlignment w:val="baseLine" />  
</w:pPr>  

The resulting text would be aligned to the baseline for each character on the line.

The possible values for this attribute are defined by the ST_TextAlignment simple type.

Applies to