ToolBarSelectedToolIndex Property

Gets or sets the index of currently selected Tool.

Definition

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

Property Value

Int32

Remarks

If you wish NOT to select any Tool put a value of -1 here.

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

If you set a value equal to or greater than the amount of Tool objects in the Tools collection, SelectedToolIndex will throw ArgumentOutOfRangeException.

Exceptions

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

See Also