Method Add | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Add(string, ThemeScope)

public void Add(string key, ThemeScope value)

Parameters

key string

The object to use as the key of the element to add.

value ThemeScope

The object to use as the value of the element to add.

Exceptions

ArgumentNullException

key is null.

ArgumentException

An element with the same key already exists in the IDictionary<TKey, TValue>.

NotSupportedException

The IDictionary<TKey, TValue> is read-only.

Add(KeyValuePair<string, ThemeScope>)

public void Add(KeyValuePair<string, ThemeScope> item)

Parameters

item KeyValuePair<string, ThemeScope>

The object to add to the ICollection.

Exceptions

NotSupportedException

The ICollection is read-only.