Determines the index of the item in the collection with the specified value of the ID property.
'Declaration
Public Function IndexOfID( _
ByVal As System.Integer _
) As System.Integer
public System.int IndexOfID(
System.int
)
Parameters
- id
- The value of the ID property to search for.
Return Value
Index of the button with the specified ID, or -1 if no such button exists.
Target Platforms: 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