ColorPalette Class
Stores information about a palette that consists of multiple color ramps.
public class ColorPalette
- Inheritance:
- object object
Constructors
ColorPalette(ThemeDefinition)
Initializes an instance of the ColorPalette
class.
public ColorPalette(ThemeDefinition definition)
Parameter | Type | Description |
---|---|---|
definition | ThemeDefinition | The ThemeDefinition to examine. |
Properties
All
Gets the collection of all color ramps in the palette.
public IEnumerable<IColorRamp> All { get; }
Property Value
- IEnumerable<IColorRamp>:
The collection of all color ramps in the palette.
Blue
Gets the blue color ramp.
Gray
Gets the gray color ramp.
Green
Gets the green color ramp.
Indigo
Gets the indigo color ramp.
Orange
Gets the orange color ramp.
Pink
Gets the pink color ramp.
Purple
Gets the purple color ramp.
Red
Gets the red color ramp.
Silver
Gets the silver color ramp.
Teal
Gets the teal color ramp.
Yellow
Gets the yellow color ramp.
Methods
GetBaseColorForBrandColor(ThemeIntent, Color)
Researches the color family base Color
that will generate a Color
closest to the specified brand/accent color.
public static Color GetBaseColorForBrandColor(ThemeIntent intent, Color brandColor)
Parameter | Type | Description |
---|---|---|
intent | ThemeIntent | The theme indent. |
brandColor | Color | The brand/accent |
Returns
- Color:
The color family base
Color
that was found.
GetColorRamp(ColorFamilyName)
Returns the IColorRamp for the specified color family.
public IColorRamp GetColorRamp(ColorFamilyName familyName)
Parameter | Type | Description |
---|---|---|
familyName | ColorFamilyName | A ColorFamilyName indicating the color family. |
Returns
- IColorRamp:
The IColorRamp for the specified color family.