AutomationPeer.GetHeadingLevel AutomationPeer.GetHeadingLevel AutomationPeer.GetHeadingLevel AutomationPeer.GetHeadingLevel Method

Definition

Gets the heading level of the UI Automation element that is associated with this automation peer.

public : AutomationHeadingLevel GetHeadingLevel()
AutomationHeadingLevel GetHeadingLevel() const;
public AutomationHeadingLevel GetHeadingLevel()
Public Function GetHeadingLevel() As AutomationHeadingLevel

Returns

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

Heading elements organize the user interface and make it easier to navigate. Some assistive technology (AT) allows users to quickly jump between headings. Headings have a level from 1 to 9.

Mouse settings page in Windows Ease of Access settings

Examples of headings would be section titles within the Windows Settings app. For instance, under the Ease of Access -> Mouse page, Pointer size, Pointer color, and Mouse keys would be a heading of level 1.

See also