Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartItemCollection Class / IndexOf Method
The SmartItem to locate in the collection. Can be a null reference (Nothing in Visual Basic).


In This Topic
    IndexOf Method
    In This Topic
    Searches for the specified SmartItem in the collection and returns its zero-based index.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal item As SmartItem _
    ) As Integer
    'Usage
     
    Dim instance As SmartItemCollection
    Dim item As SmartItem
    Dim value As Integer
     
    value = instance.IndexOf(item)
    public int IndexOf( 
       SmartItem item
    )

    Parameters

    item
    The SmartItem to locate in the collection. Can be a null reference (Nothing in Visual Basic).

    Return Value

    The index of the SmartItem or -1 if the SmartItem was not found in the collection.
    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