VerticalTextAlignment class

Office 2013 and later

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


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

public class VerticalTextAlignment : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

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)



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 (§

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.