Control.IsTabStop Control.IsTabStop Control.IsTabStop Control.IsTabStop Property

定義

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。Gets or sets a value that indicates whether a control is included in tab navigation.

public:
 property bool IsTabStop { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsTabStop { get; set; }
member this.IsTabStop : bool with get, set
Public Property IsTabStop As Boolean

屬性值

如果控制項包含於索引標籤巡覽,則為 true,否則為 falsetrue if the control is included in tab navigation; otherwise, false. 預設為 trueThe default is true.

範例

下列範例示範如何設定IsTabStop屬性以及如何測試是否控制項包含在索引標籤瀏覽。The following example shows how to set the IsTabStop property and how to test whether a control is included in tab navigation.

<Button Name="btn13" IsTabStop="true" Click="IsTabStop">
  IsTabStop
</Button>
void IsTabStop(object sender, RoutedEventArgs e)
{
    if (btn13.IsTabStop == true)
    {
        btn13.Content = "Control is a tab stop.";
    }
}
Private Sub IsTabStop(ByVal Sender As Object, ByVal e As RoutedEventArgs)

    If (btn13.IsTabStop = True) Then
        btn13.Content = "Control is a tab stop."
    End If

End Sub

備註

如果IsTabStopfalse,控制排除 索引標籤瀏覽。If IsTabStop is false, the control is excluded from tab navigation.

相依性屬性資訊Dependency Property Information

識別項欄位Identifier field IsTabStopProperty
若要設定的中繼資料屬性 trueMetadata properties set to true None

適用於