SvgCssVariablePaintServer(String, SvgPaintServer) Constructor

Definition

Namespace Svg
Assembly Svg.Custom.dll

Initialises a new instance with the given variable name and fallback.

public SvgCssVariablePaintServer(string variableName, SvgPaintServer fallbackServer)

Parameters

variableName
String

The CSS custom property name, including the leading '--' (e.g. --my-color).

fallbackServer
SvgPaintServer

The paint server to use when the variable cannot be resolved, or null.