GetColor Method
Gets a color in the palette by index.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)
- C#
- VB
- F#
public Color GetColor(
int colorIndex,
int shadeIndex
)
Public Function GetColor (
colorIndex As Integer,
shadeIndex As Integer
) As Color
abstract GetColor :
colorIndex : int *
shadeIndex : int -> Color
override GetColor :
colorIndex : int *
shadeIndex : int -> Color
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.