Version

ID Property (TBObject)

Returns an index-based ID for this Toolbar item.
Syntax
'Declaration
 
Public ReadOnly Property ID As String
public string ID {get;}
Remarks

An item's ID is comprised of the UltraWebToolbar's ID, and this object's Index in the Items collection at run-time. If the item is a grouped button, then the ID has two levels: the index of the button group within Itemsand the index of the button within the group's Buttons collection. This property value is volatile if the Items collection is modified.

For more robust and flexible applications, developers are encouraged to specify a Key value and use one of the methods on Toolbar item collections such as Items or Buttons to locate individual TBObject instances. A shortcoming of retaining index-based references to Toolbar items is that they are susceptible to becoming invalid when the container collection has had its contents manipulated (via it's Add or Remove methods).

Indexes for items contained by the UltraWebToolbar element are always zero-based, meaning that the first item in a collection will have an index number of 0.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also