Share via


IXRControl::SetTabIndex (Compact 2013)

3/28/2014

This method sets a value that determines the order in which elements receive the UI focus when the user navigates through controls by using the TAB key.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTabIndex(
    int TabIndex
) = 0; 

Parameters

  • TabIndex
    [in] Integer value that indicates the new tab index for this control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

A control with a lower tab index receives the UI focus before a control with a higher index. The index values for each control together determine the overall tab order for the controls.

.NET Framework Equivalent

System.Windows.Controls.Control.TabIndex

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRControl
IXRControl::GetTabIndex