public int SelectedToolIndex { get; set; }Public Property SelectedToolIndex As Integer
Get
SetIf 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.
| ArgumentOutOfRangeException | Thrown, if the set value is equal to or greater than the amount of Tool objects in the Tools collection. |