Map for WinForms | ComponentOne
C1.Win.Map Namespace / MapLayersCollection Class / IndexOf Method
The element.

In This Topic
    IndexOf Method (MapLayersCollection)
    In This Topic
    Gets the index of the element.
    Syntax
    'Declaration
     
    
    Public Function IndexOf( _
       ByVal item As MapLayer _
    ) As Integer
    public int IndexOf( 
       MapLayer item
    )

    Parameters

    item
    The element.

    Return Value

    The zero-based index of element or -1 if element does not exist in the collection.
    See Also