次の方法で共有


AutomationProperties.HeadingLevel 添付プロパティ

定義

UI オートメーション要素の見出しレベルを取得または設定します。

see GetHeadingLevel, and SetHeadingLevel
see GetHeadingLevel, and SetHeadingLevel
see GetHeadingLevel, and SetHeadingLevel

<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);
    }
}

注釈

見出し要素は、ユーザー インターフェイスを整理し、移動しやすくします。 一部の支援技術 (AT) を使用すると、ユーザーは見出し間をすばやく移動できます。 見出しのレベルは 1 から 9 です。

見出しレベルのプロパティ値は 、GetHeadingLevel メソッドによって返されます。

適用対象

こちらもご覧ください