VerticalTextAlignment Class

Vertical Alignment.When the object is serialized out as xml, its qualified name is x:vertAlign.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.VerticalTextAlignment

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class VerticalTextAlignment _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As VerticalTextAlignment
public class VerticalTextAlignment : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

18.4.14 vertAlign (Vertical Alignment)

This element adjusts the vertical position of the text relative to the text's default appearance for this run. It is used to get 'superscript' or 'subscript' texts, and shall reduce the font size (if a smaller size is available) accordingly.

Parent Elements

font (§18.8.22); rPr (§18.4.7)

Attributes

Description

val (Value)

An enumeration representing the vertical-alignment setting.

Setting this to either subscript or superscript shall make the font size smaller if a smaller font size is available.

The possible values for this attribute are defined by the ST_VerticalAlignRun simple type (§22.9.2.17).

[Note: The W3C XML Schema definition of this element’s content model (CT_VerticalAlignFontProperty) is located in §A.2. 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

VerticalTextAlignment Members

DocumentFormat.OpenXml.Spreadsheet Namespace