The ColorPalette type exposes the following members.

Constructors

  Name Description
Public method ColorPalette
Creates an instance of the color palette with the specified theme name.

Methods

  Name Description
Public method Add(Color)
Adds the specified color to the palette.
Public method Add(Color, String)
Adds the color with the specified name.
Public method Add(Color, String, String)
Adds the color with the specified name and description.
Public method Clear
Deletes all entries from the palette.
Public method Clone
Returns a clone of this palette with the specified theme name.
Public method Contains
Determines whether a color is in the palette.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method Static member GetColorPalette
Returns one of the predefined color palettes.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IndexOf
Searches for the specified color in the palette and returns a zero-based index of the found entry.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Set(Int32, Color)
Assigns the color to the palette entry with the specified index.
Public method Set(Int32, Color, String)
Assigns the color and color name to the palette entry with the specified index.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property Count
Gets the number of palette entries.
Public property Item
Gets the palette entry with the specified index.
Public property ThemeName
Gets or sets the name of the color theme.

Explicit Interface Implementations

See Also