FluentColorPalette Class
Definition
Implements the standard Windows 10 color palette.
public class FluentColorPalette
Constructors
| Name | Description |
|---|---|
| FluentColorPalette | No summary available. |
FluentColorPalette Constructor
public FluentColorPalette()
Methods
| Name | Description |
|---|---|
| GetColor | Gets a color in the palette by index. |
GetColor Method
Gets a color in the palette by index.
public Avalonia.Media.Color GetColor(int colorIndex, int shadeIndex)
Parameters
colorIndex int
The index of the color in the palette. The index must be between zero and Avalonia.Controls.IColorPalette.ColorCount.
shadeIndex int
The index of the color shade in the palette. The index must be between zero and Avalonia.Controls.IColorPalette.ShadeCount.
Returns
The color at the specified index or an exception.
Properties
| Name | Description |
|---|---|
| ColorCount | Gets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades. This has little meaning in this palette as colors are not strictly separated. |
| ShadeCount | Gets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it. This has little meaning in this palette as colors are not strictly separated by shade. |
ColorCount Property
Gets the total number of colors in this palette. A color is not necessarily a single value and may be composed of several shades. This has little meaning in this palette as colors are not strictly separated.
public int ColorCount { get; set; }
Remarks
Represents total columns in a table.
ShadeCount Property
Gets the total number of shades for each color in this palette. Shades are usually a variation of the color lightening or darkening it. This has little meaning in this palette as colors are not strictly separated by shade.
public int ShadeCount { get; set; }
Remarks
Represents total rows in a table.