Class Colors | Terminal.Gui v2 (original) (raw)

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.

IsReadOnly

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

this[string]

Gets or sets the element with the specified key.

Keys

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

Values

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

Methods

Add(KeyValuePair<string, ColorScheme?>)

Adds an item to the ICollection.

Add(string, ColorScheme?)

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

Clear()

Removes all items from the ICollection.

Contains(KeyValuePair<string, ColorScheme?>)

Determines whether the ICollection 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 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.

Remove(string)

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

Reset()

Resets the ColorSchemes dictionary to its default values.

TryGetValue(string, out ColorScheme?)

Gets the value associated with the specified key.

Events

CollectionChanged

Raised when the collection changes.