Class CSSProperty
CSS property declaration data.
public sealed record CSSProperty : IEquatable<CSSProperty>
- Inheritance
-
CSSProperty
- Implements
- Inherited Members
Constructors
CSSProperty(string, string)
CSS property declaration data.
public CSSProperty(string Name, string Value)
Parameters
Properties
Disabled
Whether the property is disabled by the user (present for source-based properties only).
public bool? Disabled { get; init; }
Property Value
- bool?
Implicit
Whether the property is implicit (implies false if absent).
public bool? Implicit { get; init; }
Property Value
- bool?
Important
Whether the property has "!important" annotation (implies false if absent).
public bool? Important { get; init; }
Property Value
- bool?
LonghandProperties
Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
public ImmutableArray<CSSProperty>? LonghandProperties { get; init; }
Property Value
Name
The property name.
public string Name { get; init; }
Property Value
ParsedOk
Whether the property is understood by the browser (implies true if absent).
public bool? ParsedOk { get; init; }
Property Value
- bool?
Range
The entire property range in the enclosing style declaration (if available).
public SourceRange? Range { get; init; }
Property Value
Text
The full property text as specified in the style.
public string? Text { get; init; }
Property Value
Value
The property value.
public string Value { get; init; }