Skip to main content

SixteenColorPalette Class

Implements the standard sixteen color palette from the HTML 4.01 specification.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public class SixteenColorPalette : IColorPalette
View Source
InheritanceObject → SixteenColorPalette
ImplementsIColorPalette

Remarks

See https://en.wikipedia.org/wiki/Web_colors#HTML_color_names.

Constructors

SixteenColorPalette()Initializes a new instance of the SixteenColorPalette class

Properties

ColorCountGets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades.
ShadeCountGets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetColor(Int32, Int32)Gets a color in the palette by index.
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Controls Namespace