Documents for PDF .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Common Namespace / OwnedKeyedCollection<TKey,TItem> Class / IndexOfKey Method
The key of the item to locate.

In This Topic
    IndexOfKey Method
    In This Topic
    Returns the 0-based index of a TItem with specified key in the current OwnedKeyedCollection<TKey,TItem>.
    Syntax
    'Declaration
     
    Public Function IndexOfKey( _
       ByVal key As TKey _
    ) As System.Integer
    public System.int IndexOfKey( 
       TKey key
    )

    Parameters

    key
    The key of the item to locate.

    Return Value

    The 0-based index of the specified item, or -1 if the item was not found.
    See Also