Control.IsTabStop 屬性

定義

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。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; }
[<System.ComponentModel.Bindable(true)>]
member this.IsTabStop : bool with get, set
Public Property IsTabStop As Boolean

屬性值

Boolean

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

屬性

範例

下列範例示範如何設定 IsTabStop 屬性,以及如何測試控制項是否包含在 tab 導覽中。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

適用於