Docs · API reference · Motus.Abstractions

CssRuleUsage Class#

CSS rule usage entry within a stylesheet source.

public sealed record CssRuleUsage : System.IEquatable<Motus.Abstractions.CssRuleUsage>

Inheritance System.Object → CssRuleUsage

Implements System.IEquatable<CssRuleUsage>

Constructors#

CssRuleUsage(int, int, bool) Constructor#

CSS rule usage entry within a stylesheet source.

public CssRuleUsage(int StartOffset, int EndOffset, bool Used);

Parameters#

StartOffset System.Int32

Start byte offset (inclusive) within the stylesheet source.

EndOffset System.Int32

End byte offset (exclusive) within the stylesheet source.

Used System.Boolean

True if the rule was matched/applied during the session.

Properties#

EndOffset Property#

End byte offset (exclusive) within the stylesheet source.

public int EndOffset { get; init; }

Property Value#

System.Int32

StartOffset Property#

Start byte offset (inclusive) within the stylesheet source.

public int StartOffset { get; init; }

Property Value#

System.Int32

Used Property#

True if the rule was matched/applied during the session.

public bool Used { get; init; }

Property Value#

System.Boolean