CssVariableReferenceValue Class

A var() reference (https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue).

public sealed class CssVariableReferenceValue

Constructors

NameDescription
CssVariableReferenceValue(string, CssUnparsedValue?)https://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-cssvariablereferencevalue

CssVariableReferenceValue(string, CssUnparsedValue?)

CssUnparsedValue.cs

https://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-cssvariablereferencevalue

public CssVariableReferenceValue(string variable, CssUnparsedValue? fallback = null)

Properties

NameDescription
FallbackGets the fallback value used when the custom property is not defined, or null when there is none.
VariableThe name of the custom property (e.g. "--foo").

Gets the fallback value used when the custom property is not defined, or null when there is none.

public CssUnparsedValue? Fallback { get; }

The name of the custom property (e.g. "--foo").

public string Variable { get; set; }

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.