Click or drag to resize

TypedSortedListEx TKey , TValue Add Method ( TKey , TValue )

Adds an element with the provided key and value to the list.

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public virtual void Add(
	TKey key,
	TValue value
)

Parameters

key
Type: TKey
The Object to use as the key of the element to add.
value
Type: TValue
The Object to use as the value of the element to add.

Implements

IDictionary TKey, TValue Add(TKey, TValue)
Exceptions
Exception Condition
ArgumentNullException When key is null.
ArgumentException When list already contains specified key.
See Also