Skip to main content
A newer version of this page is available. .

PaletteRepository Members

Represents the repository used to store the palettes that are used to draw the elements of a chart control.

Constructors

Name Description
PaletteRepository() Initializes a new instance of the PaletteRepository class with the default settings.

Properties

Name Description
Capacity Gets or sets the capacity of a SortedList object. Inherited from SortedList.
Count Gets the number of elements contained in a SortedList object. Inherited from SortedList.
IsFixedSize Gets a value indicating whether a SortedList object has a fixed size. Inherited from SortedList.
IsReadOnly Gets a value indicating whether a SortedList object is read-only. Inherited from SortedList.
IsSynchronized Gets a value indicating whether access to a SortedList object is synchronized (thread safe). Inherited from SortedList.
Item[Object] Gets or sets the value associated with a specific key in a SortedList object. Inherited from SortedList.
Item[String] Provides access to individual palettes in the repository by their names.
Keys Gets the keys in a SortedList object. Inherited from SortedList.
LocalizedPaletteNames Returns an array of localized palette names.
PaletteNames Gets an array of available palette names.
SyncRoot Gets an object that can be used to synchronize access to a SortedList object. Inherited from SortedList.
Values Gets the values in a SortedList object. Inherited from SortedList.

Methods

Name Description
Add(Object, Object) Adds an element with the specified key and value to a SortedList object. Inherited from SortedList.
Add(String, Palette) Adds the palette with the specified name to the repository.
Clear() Removes all elements from a SortedList object. Inherited from SortedList.
Clone() Creates a shallow copy of a SortedList object. Inherited from SortedList.
Contains(Object) Determines whether a SortedList object contains a specific key. Inherited from SortedList.
ContainsKey(Object) Determines whether a SortedList object contains a specific key. Inherited from SortedList.
ContainsValue(Object) Determines whether a SortedList object contains a specific value. Inherited from SortedList.
CopyTo(Array, Int32) Copies SortedList elements to a one-dimensional Array object, starting at the specified index in the array. Inherited from SortedList.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetByIndex(Int32) Gets the value at the specified index of a SortedList object. Inherited from SortedList.
GetEnumerator() Returns an IDictionaryEnumerator object that iterates through a SortedList object. Inherited from SortedList.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetKey(Int32) Gets the key at the specified index of a SortedList object. Inherited from SortedList.
GetKeyList() Gets the keys in a SortedList object. Inherited from SortedList.
GetLocalizedPaletteNames() Returns an array of localized palette names. Inherited from PaletteListBase.
GetPaletteNames() Returns an array of strings that are the names of custom palettes within the chart. Inherited from PaletteListBase.
GetType() Gets the Type of the current instance. Inherited from Object.
GetValueList() Gets the values in a SortedList object. Inherited from SortedList.
IndexOfKey(Object) Returns the zero-based index of the specified key in a SortedList object. Inherited from SortedList.
IndexOfValue(Object) Returns the zero-based index of the first occurrence of the specified value in a SortedList object. Inherited from SortedList.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterPalette(Palette) Performs a check and adds the specified palette to the repository.
RegisterPalette(String, Palette) Obsolete. Adds the specified palette with the specified name to the repository.
Remove(Object) Removes the element with the specified key.
RemoveAt(Int32) Removes the element at the specified index of the PaletteRepository instance.
SetByIndex(Int32, Object) Replaces the value at a specific index in a SortedList object. Inherited from SortedList.
Synchronized(SortedList) static Returns a synchronized (thread-safe) wrapper for a SortedList object. Inherited from SortedList.
IEnumerable.GetEnumerator() Returns an IEnumerator that iterates through the SortedList. Inherited from SortedList.
ToString() Returns a string that represents the current object. Inherited from Object.
TrimToSize() Sets the capacity to the actual number of elements in a SortedList object. Inherited from SortedList.
See Also