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

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Remove(KeyValuePair<string, ColorScheme?>)

Removes the first occurrence of a specific object from the ICollection.

public bool Remove(KeyValuePair<string, ColorScheme?> item)

Parameters

item KeyValuePair<string, ColorScheme>

The object to remove from the ICollection.

Returns

bool

true if item was successfully removed from the ICollection; otherwise, false. This method also returns false if item is not found in the original ICollection.

Exceptions

NotSupportedException

The ICollection is read-only.

Remove(string)

public bool Remove(string key)

Parameters

key string

The key of the element to remove.

Returns

bool

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey, TValue>.

Exceptions

ArgumentNullException

key is null.

NotSupportedException

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