Edit

Share via


IColorPalette.GetColor(Int32, Int32) Method

Definition

Gets a color in the palette by index.

public Windows.UI.Color GetColor (int colorIndex, int shadeIndex);
abstract member GetColor : int * int -> Windows.UI.Color
Public Function GetColor (colorIndex As Integer, shadeIndex As Integer) As Color

Parameters

colorIndex
Int32

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

shadeIndex
Int32

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

Returns

The color at the specified index or an exception.

Applies to