Table of Contents

Method Add

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Add(KeyValuePair<string, ColorScheme?>)

Adds an item to the ICollection<T>.

public void Add(KeyValuePair<string, ColorScheme?> item)

Parameters

item KeyValuePair<string, ColorScheme>

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Add(string, ColorScheme?)

Adds an element with the provided key and value to the IDictionary<TKey, TValue>.

public void Add(string key, ColorScheme? value)

Parameters

key string

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

value ColorScheme

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.