MicroPalette Class
Provides a palette of colors for use in charts.
public class MicroPalette
- Inheritance:
- object object
Constructors
MicroPalette()
Initializes an instance of the class.
public MicroPalette()
MicroPalette(MicroPaletteKind)
Initializes an instance of the class.
public MicroPalette(MicroPaletteKind kind)
| Parameter | Type | Description |
|---|---|---|
| kind | MicroPaletteKind | A MicroPaletteKind that indicates the built-in palette to use. |
MicroPalette(params Color[]?)
Initializes an instance of the class.
public MicroPalette(params Color[]? paletteBaseColors)
| Parameter | Type | Description |
|---|---|---|
| paletteBaseColors | Color[] | The palette Color values. |
Properties
BaseColors
The collection of palette base Color objects used to generate the palette.
ColorSelectionHint
A MicroColorSelectionHint that provides a hint on how to perform color selection for this palette.
public MicroColorSelectionHint ColorSelectionHint { get; set; }
Property Value
- MicroColorSelectionHint:
The default value is UniformDistribution.
Colors
The read-only collection of Color objects in this palette.
public ReadOnlyObservableCollection<Color> Colors { get; }
Property Value
Remarks
This collection includes the BaseColors values, along with other shade variants if the IsShadeGenerationEnabled
property is set to true.
See Also
IsShadeGenerationEnabled
Indicates whether dark and light shade variants of the BaseColors will be appended to the Colors collection.
Kind
A MicroPaletteKind that indicates the built-in palette to use.
Methods
OnChanged(EventArgs)
Raises the Changed event.
protected virtual void OnChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
Events
Changed
Occurs after the palette has been changed.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()