IdSelector Class

An ID selector (https://drafts.csswg.org/selectors-4/#id-selectors).

public sealed class IdSelector : SimpleSelector
Inheritance
SimpleSelector IdSelector

Properties

NameDescription
IdGets the identifier to match.
SpecificityGets the specificity of the selector, always (1, 0, 0).

Gets the identifier to match.

public string Id { get; }

Property value

string

Specificity

Selector.cs

Gets the specificity of the selector, always (1, 0, 0).

public override Specificity Specificity { get; }

Property value

Specificity