Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Imaging 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>.
    Public Function IndexOfKey( _
       ByVal key As TKey _
    ) As System.Integer
    public IndexOfKey( 
       TKey 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