Table of Contents

Class Colors

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Holds the ColorSchemes that define the Attributes that are used by views to render themselves.

public sealed class Colors : INotifyCollectionChanged, IDictionary<string, ColorScheme?>, ICollection<KeyValuePair<string, ColorScheme?>>, IEnumerable<KeyValuePair<string, ColorScheme?>>, IEnumerable
Inheritance
Colors
Implements
Inherited Members

Properties

ColorSchemes

Gets a dictionary of defined ColorScheme objects.

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

this[string]

Gets or sets the element with the specified key.

Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.

Values

Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.

Methods

Add(KeyValuePair<string, ColorScheme?>)

Adds an item to the ICollection<T>.

Add(string, ColorScheme?)

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

Clear()

Removes all items from the ICollection<T>.

Contains(KeyValuePair<string, ColorScheme?>)

Determines whether the ICollection<T> contains a specific value.

ContainsKey(string)

Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.

CopyTo(KeyValuePair<string, ColorScheme?>[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Remove(KeyValuePair<string, ColorScheme?>)

Removes the first occurrence of a specific object from the ICollection<T>.

Remove(string)

Removes the element with the specified key from the IDictionary<TKey, TValue>.

Reset()

Resets the ColorSchemes dictionary to the default values.

TryGetValue(string, out ColorScheme?)

Gets the value associated with the specified key.

Events

CollectionChanged

Occurs when the collection changes.