Control.IsTabStop 屬性

定義

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。

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,否則為 false。 預設為 true

屬性

範例

下列範例示範如何設定 IsTabStop 屬性,以及如何測試控制項是否包含在索引標籤導覽中。

<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

備註

如果 為 IsTabStop false ,則控制項會從索引標籤導覽中排除。

相依性屬性資訊

識別碼欄位 IsTabStopProperty
設定為 的中繼資料屬性 true

適用於