Skip to main content

GetColor Method

Gets a color in the palette by index.

Definition

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

Color GetColor(
int colorIndex,
int shadeIndex
)
View Source

Parameters

  Int32
The index of the color in the palette. The index must be between zero and ColorCount.
  Int32
The index of the color shade in the palette. The index must be between zero and ShadeCount.

Return Value

Color
The color at the specified index or an exception.

See Also

Reference

IColorPalette Interface
Avalonia.Controls Namespace