Click or drag to resize

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
)

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