Returns the zero-based index of the specified key.

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public virtual int IndexOfKey(
	TKey key
)
Public Overridable Function IndexOfKey ( 
	key As TKey
) As Integer
public:
virtual int IndexOfKey(
	TKey key
)
abstract IndexOfKey : 
        key : 'TKey -> int 
override IndexOfKey : 
        key : 'TKey -> int 

Parameters

key
TKey
The key to locate.

Return Value

Int32
The zero-based index of key, if key is found; otherwise, -1.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If specified key is null.

See Also