TabControlSelectedTabIndex Property

Gets or sets the index of currently selected TabPage.

Definition

Namespace: BeeMobile.ToolBar
Assembly: BeeMobile.ToolBar.NET48 (in BeeMobile.ToolBar.NET48.dll) Version: 4.8.3.5
C#
public int SelectedTabIndex { get; set; }

Property Value

Int32

Remarks

If you set a value less than 0 to SelectedTabIndex, it will be automatically set to -1 which means that no TabPage is selected.

If you set a value equal to or greater than the amount of TabPage objects in the TabPages collection, SelectedTabIndex will throw ArgumentOutOfRangeException.

Exceptions

ArgumentOutOfRangeException Thrown, if the set value is equal to or greater than the amount of TabPage objects in the TabPages collection.

See Also