ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.5.2 Assembly / C1.Win.C1Command Namespace / C1NavBarButton.ButtonCollection Class / IndexOfID Method
The value of the ID property to search for.

In This Topic
    IndexOfID Method
    In This Topic
    Determines the index of the item in the collection with the specified value of the ID property.
    Syntax
    'Declaration
     
    Public Function IndexOfID( _
       ByVal id As System.Integer _
    ) As System.Integer
    public System.int IndexOfID( 
       System.int id
    )

    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.
    Requirements

    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

    See Also