SimpleSelector Class

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

public abstract class SimpleSelector

Properties

NameDescription
SpecificityGets the specificity of the simple selector.

Specificity

Gets the specificity of the simple selector.

public abstract Specificity Specificity { get; }

Property value

Specificity

Methods

NameDescription
ToString()Serializes the simple selector (https://drafts.csswg.org/cssom/#serialize-a-simple-selector).

ToString()

Selector.cs

Serializes the simple selector (https://drafts.csswg.org/cssom/#serialize-a-simple-selector).

public override string ToString()

Returns

string