TypedSortedListEx
TKey
,
TValue
IndexOfKey Method
|
Returns the zero-based index of the specified key.
Namespace:
Spire.Doc.Collections
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
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
-
Type:
TKey
The key to locate.
Return Value
Type:
Int32
The zero-based index of key, if key is found; otherwise, -1.
Exceptions
Exception
|
Condition
|
ArgumentNullException
|
If specified key is null.
|
See Also