TextPatternIdentifiers.HorizontalTextAlignmentAttribute Field


Identifies the HorizontalTextAlignment attribute of a text range.

public: static initonly System::Windows::Automation::AutomationTextAttribute ^ HorizontalTextAlignmentAttribute;
public static readonly System.Windows.Automation.AutomationTextAttribute HorizontalTextAlignmentAttribute;
 staticval mutable HorizontalTextAlignmentAttribute : System.Windows.Automation.AutomationTextAttribute
Public Shared ReadOnly HorizontalTextAlignmentAttribute As AutomationTextAttribute 

Field Value



The horizontal text alignment applied to the paragraph(s) associated with the calling text range.

This identifier is used by UI Automation providers. UI Automation client applications should use the equivalent field in TextPattern.

Values for this attribute are of type


The default value is Left

Applies to

See also