ClassSelector Class

A class selector (https://drafts.csswg.org/selectors-4/#class-html).

public sealed class ClassSelector : SimpleSelector
Inheritance
SimpleSelector ClassSelector

Properties

NameDescription
ClassNameThe class name, with the escapes resolved.
SpecificityGets the specificity of the selector, always (0, 1, 0).

ClassName

Selector.cs

The class name, with the escapes resolved.

public string ClassName { get; }

Property value

string

Specificity

Selector.cs

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

public override Specificity Specificity { get; }

Property value

Specificity