CssVariableReferenceValue Class
A var() reference (https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue).
public sealed class CssVariableReferenceValueConstructors
| Name | Description |
|---|---|
| CssVariableReferenceValue(string, CssUnparsedValue?) | https://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-cssvariablereferencevalue |
CssVariableReferenceValue(string, CssUnparsedValue?)
CssUnparsedValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-cssvariablereferencevalue-cssvariablereferencevalue
public CssVariableReferenceValue(string variable, CssUnparsedValue? fallback = null)Properties
| Name | Description |
|---|---|
| Fallback | Gets the fallback value used when the custom property is not defined, or null when there is none. |
| Variable | The name of the custom property (e.g. "--foo"). |
Fallback
CssUnparsedValue.csGets the fallback value used when the custom property is not defined, or null when there is none.
public CssUnparsedValue? Fallback { get; }Variable
CssUnparsedValue.csThe name of the custom property (e.g. "--foo").
public string Variable { get; set; }Methods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |