[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OwnedKeyedCollection-2.IndexOfKey

IndexOfKey Method

IndexOfKey(TKey)

Returns the 0-based index of a TItem with specified key in the current OwnedKeyedCollection<TKey, TItem>.

Declaration
public int IndexOfKey(TKey key)
Public Function IndexOfKey(key As TKey) As Integer
Parameters
Type Name Description
TKey key

The key of the item to locate.

Returns
Type Description
int

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