HotSpot.TabIndex Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the tab index of the HotSpot region.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
virtual property short TabIndex {
	short get ();
	void set (short value);
}
/** @property */
public short get_TabIndex ()

/** @property */
public void set_TabIndex (short value)

public function get TabIndex () : short

public function set TabIndex (value : short)

Property Value

The tab index of the HotSpot region. The default is 0, which indicates that this property is not set.

Exception typeCondition

ArgumentOutOfRangeException

The specified tab index is not between -32768 and 32767.

Use the TabIndex property to specify or determine the tab index of a HotSpot region on the Web Forms page.

When you press the TAB key, the order in which the Web server controls receive focus is determined by the TabIndex property of each control. When a page is initially loaded, the first item that receives focus when the TAB key is pressed is the address bar. Next, the controls on the Web Forms page are tabbed to in ascending order, based on the value of the TabIndex property of each control, starting with the smallest positive, nonzero value. If multiple controls share the same tab index, the controls will receive focus in the order they are declared on the Web Forms page. Finally, controls that have a tab index of zero are tabbed to in the order they are declared.

NoteNote

Only controls with a nonzero tab index will render the tabindex attribute.

You can remove a HotSpot region from the tab order by setting the TabIndex property to a negative value.

NoteNote

This property is supported only in Internet Explorer 4.0 and later.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: