AutomationProperties.HeadingLevel Attached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the heading level for a UI Automation element.
see GetHeadingLevel, and SetHeadingLevel
see GetHeadingLevel, and SetHeadingLevel
see GetHeadingLevel, and SetHeadingLevel
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Examples
<TextBlock
Text="Mouse Options"
AutomationProperties.HeadingLevel="1"/>
</TextBlock>
<StackPanel AutomationProperties.AutomationName="Description of Content" AutomationProperties.HeadingLevel="1">
<!-- content here -->
</StackPanel>
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
AutomationProperties.SetHeadingLevel(this, AutomationHeadingLevel.HeadingLevel3);
}
}
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.
The heading level property value is returned by the GetHeadingLevel method.
- Type: AutomationHeadingLevel
- Identifier field: HeadingLevelProperty
- Accessor methods: GetHeadingLevel, SetHeadingLevel