SvgColorRole
ChartForgeX.Themes
The role of a colour variable in SvgColorVariables. When two variables share a colour, a paint written for a role (a series bar, a status mark, a ramp step, the surface behind marks) takes the variable of that role, so the property names the same token in every theme. Paints without a role match by colour alone.
Inheritance
- Enum
- SvgColorRole
Usage
Explore 13 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 11
- Field SvgColorRole.Any
- Field SvgColorRole.Axis
- Field SvgColorRole.DivergingRamp
- Field SvgColorRole.Grid
- Field SvgColorRole.Ramp
- Field SvgColorRole.SequentialRamp
- Field SvgColorRole.Series
- Field SvgColorRole.Status
- Field SvgColorRole.Surface
- Field SvgColorRole.Text
- Property SvgColorVariable.Role
Accepted by parameters 2
- Method SvgColorVariables.Add
- Method SvgColorVariables.AddInk
Inherited Methods
public string ToString(IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const SvgColorRole Any #No particular role: the variable is used for any paint of its colour.
0public const SvgColorRole Surface #A surface: page, card, plot, or line colour. Text matched by colour value never takes it; text a renderer writes in the surface colour on purpose (a count on a strong heatmap cell) does.
1public const SvgColorRole Grid #A horizontal plot guide, distinct from neutral fills and ramp colours.
6public const SvgColorRole DivergingRamp #A step of a theme-derived diverging scale, distinct from equal sequential colors.
9