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 class.
public ColorPalette(ThemeDefinition definition)
| Parameter | Type | Description |
|---|---|---|
| definition | ThemeDefinition | The ThemeDefinition to examine. |
Properties
All
The collection of all color ramps in the palette.
Blue
The blue color ramp.
Gray
The gray color ramp.
Green
The green color ramp.
Indigo
The indigo color ramp.
Orange
The orange color ramp.
Pink
The pink color ramp.
Purple
The purple color ramp.
Red
The red color ramp.
Silver
The silver color ramp.
Teal
The teal color ramp.
Yellow
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
Colorthat 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
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()