Documents for PDF, .NET Edition Documentation
IndexOfKey Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > OwnedKeyedCollection<TKey,TItem> Class : IndexOfKey Method
The key of the item to locate.
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

Reference

OwnedKeyedCollection<TKey,TItem> Class
OwnedKeyedCollection<TKey,TItem> Members