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)

public Color GetColor(
int colorIndex,
int shadeIndex
)

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.

Implements

IColorPalette.GetColor(Int32, Int32)

See Also

Reference

FlatColorPalette Class
Avalonia.Controls Namespace