KeyboardNavigation.SetTabIndex Method (DependencyObject, Int32)

 

Set the value of the TabIndex attached property for the specified element.

Namespace:   System.Windows.Input
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static void SetTabIndex(
	DependencyObject element,
	int index
)

Parameters

element
Type: System.Windows.DependencyObject

The element on which to set the attached property to.

index
Type: System.Int32

The property value to set.

Exception Condition
ArgumentNullException

element is null.

.NET Framework
Available since 3.0
Return to top
Show: