Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssCascadeCandidate

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers sealed

One supported declaration retained while resolving an owned property slice.

Inheritance

  • Object
  • HtmlCssCascadeCandidate

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public HtmlCssCascadeCandidate(String declaredValue, String cascadedValue, HtmlCssCascadeSourceKind source, HtmlCssCascadeDecision decision, Boolean isEffective, HtmlCssPropertyParseStatus grammarStatus, Boolean isImportant, HtmlCssSpecificity specificity, Int32 ruleOrder, Int32 declarationOrder, String selector = null, String layerName = null) #

Creates an immutable provider-neutral cascade candidate.

Parameters

declaredValue System.String requiredposition: 0
cascadedValue System.String requiredposition: 1
source OfficeIMO.Html.Css.HtmlCssCascadeSourceKind requiredposition: 2
decision OfficeIMO.Html.Css.HtmlCssCascadeDecision requiredposition: 3
isEffective System.Boolean requiredposition: 4
grammarStatus OfficeIMO.Html.Css.HtmlCssPropertyParseStatus requiredposition: 5
isImportant System.Boolean requiredposition: 6
specificity OfficeIMO.Html.Css.HtmlCssSpecificity requiredposition: 7
ruleOrder System.Int32 requiredposition: 8
declarationOrder System.Int32 requiredposition: 9
selector System.String = null optionalposition: 10
layerName System.String = null optionalposition: 11

Properties

public String DeclaredValue { get; } #

Declaration value supplied to the cascade, including a CSS-wide keyword or unresolved var().

public String CascadedValue { get; } #

Candidate value after CSS-wide keyword handling, or null for a reset or rollback.

public HtmlCssCascadeSourceKind Source { get; } #

Where the candidate came from.

public HtmlCssCascadeDecision Decision { get; } #

How the candidate participated in the final result.

public Boolean IsEffective { get; } #

Whether this authored declaration won the local cascade before keyword or substitution fallback was applied.

public HtmlCssPropertyParseStatus GrammarStatus { get; } #

Owned property-grammar status for the declaration value.

public Boolean IsImportant { get; } #

Whether the declaration was important.

public HtmlCssSpecificity Specificity { get; } #

Selector specificity. Inline, inherited and presentational candidates also expose their stable internal tuple.

public Int32 RuleOrder { get; } #

Matched rule order, or -1 for inherited and presentational values.

public Int32 DeclarationOrder { get; } #

Order within the declaration block.

public String Selector { get; } #

Matched selector text when the source is a style rule.

public String LayerName { get; } #

Qualified cascade-layer name, or null for an unlayered declaration.