API Reference
Struct
SvgColorVariable
One colour mapped to a CSS custom property by SvgColorVariables.
Inheritance
- ValueType
- SvgColorVariable
Usage
Explore 2 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 2
- Method SvgColorVariables.GetVariablesForSvg
- Property SvgColorVariables.Variables
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?
Properties
public String Name { get; } #Gets the custom property name, for example --brand-series-1.
public ChartColor Color { get; } #Gets the colour the property stands for; its literal value is the fallback.
public SvgColorRole Role { get; } #Gets the role of the colour. Paints written for a role prefer variables of that role; SvgColorRole.Surface variables are never used for the fill of text, so text that happens to have a surface colour (such as white labels on dark marks) stays literal instead of following the surface into another theme.