API Reference
SvgColorRole
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 11 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 9
- Field SvgColorRole.Any
- Field SvgColorRole.Axis
- Field SvgColorRole.Grid
- Field SvgColorRole.Ramp
- 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 override Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
public String ToString(IFormatProvider? provider) #StringObsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #StringObsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
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.
6