Class StyleRuleInspection
One style rule considered for a control: whether it matched, and if not, why.
public sealed class StyleRuleInspection
- Inheritance
-
StyleRuleInspection
- Inherited Members
Properties
Matched
True when the rule's selector matched the control.
public bool Matched { get; }
Property Value
Order
Cascade position: higher specificity wins, then later declaration order.
public int Order { get; }
Property Value
Origin
The source location of the rule (for example theme.fcss:12) when the style carries one.
public string Origin { get; }
Property Value
Properties
The properties the rule sets.
public IReadOnlyList<string> Properties { get; }
Property Value
Reason
For an unmatched rule, the first reason it does not apply. Null when matched.
public string Reason { get; }
Property Value
Selector
The rule's selector text.
public string Selector { get; }
Property Value
Specificity
The selector's specificity, used to order competing rules.
public int Specificity { get; }