Class CSSStyle
CSS style representation.
public sealed record CSSStyle : IEquatable<CSSStyle>
- Inheritance
-
CSSStyle
- Implements
- Inherited Members
Constructors
CSSStyle(ImmutableArray<CSSProperty>, ImmutableArray<ShorthandEntry>)
CSS style representation.
public CSSStyle(ImmutableArray<CSSProperty> CssProperties, ImmutableArray<ShorthandEntry> ShorthandEntries)
Parameters
CssPropertiesImmutableArray<CSSProperty>CSS properties in the style.
ShorthandEntriesImmutableArray<ShorthandEntry>Computed values for all shorthands found in the style.
Properties
CssProperties
CSS properties in the style.
public ImmutableArray<CSSProperty> CssProperties { get; init; }
Property Value
CssText
Style declaration text (if available).
public string? CssText { get; init; }
Property Value
Range
Style declaration range in the enclosing stylesheet (if available).
public SourceRange? Range { get; init; }
Property Value
ShorthandEntries
Computed values for all shorthands found in the style.
public ImmutableArray<ShorthandEntry> ShorthandEntries { get; init; }
Property Value
StyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
public StyleSheetId? StyleSheetId { get; init; }