VerticalTextAlignmentOnPage.Val Property
Vertical Alignment Setting.Represents the attribte in schema: w:val
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As EnumValue(Of VerticalJustificationValues)
Get
Set
'Usage
Dim instance As VerticalTextAlignmentOnPage
Dim value As EnumValue(Of VerticalJustificationValues)
value = instance.Val
instance.Val = value
[SchemaAttrAttribute(, "val")]
public EnumValue<VerticalJustificationValues> Val { get; set; }
Property Value
Type: DocumentFormat.OpenXml.EnumValue<VerticalJustificationValues>
Returns EnumValue<T>.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the vertical alignment for text between the top and bottom margins of the parent container (page or table cell).
Consider a region where the text shall be vertically centered in the parent element. This would require a val value of center, in order to specify that all justification vertically shall be centered relative to the parent. For a section, this setting would be specified as follows:
<w:vAlign w:val="center" />
The val attribute of center specifies that the content is centered relative to its container (in this case, the page).
The possible values for this attribute are defined by the ST_VerticalJc simple type.
See Also
Reference
VerticalTextAlignmentOnPage Class