Skip to main content

IColorPalette Interface

Interface to define a color palette.

Definition

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

public interface IColorPalette
View Source

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

GetColor(Int32, Int32)Gets a color in the palette by index.

See Also

Reference

Avalonia.Controls Namespace