KeyboardNavigation.GetTabIndex(DependencyObject) 方法

定義

取得所指定項目的 TabIndex 附加屬性值。

public:
 static int GetTabIndex(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static int GetTabIndex (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetTabIndex : System.Windows.DependencyObject -> int
Public Shared Function GetTabIndex (element As DependencyObject) As Integer

參數

element
DependencyObject

要從中讀取附加屬性的項目。

傳回

TabIndex 屬性的值。

屬性

例外狀況

elementnull

適用於

另請參閱