Class StyleSelectorCompound
public sealed class StyleSelectorCompound
- Inheritance
-
StyleSelectorCompound
- Inherited Members
Constructors
StyleSelectorCompound(string, bool, string, IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyList<StyleSelectorCompound>)
Creates a compound selector without attribute or structural predicates.
public StyleSelectorCompound(string typeName, bool universal, string name, IReadOnlyList<string> classes, IReadOnlyList<string> pseudoStates, IReadOnlyList<StyleSelectorCompound> negations)
Parameters
typeNamestringuniversalboolnamestringclassesIReadOnlyList<string>pseudoStatesIReadOnlyList<string>negationsIReadOnlyList<StyleSelectorCompound>
StyleSelectorCompound(string, bool, string, IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyList<StyleSelectorCompound>, IReadOnlyList<StyleSelectorPredicate>)
Creates a compound selector: a type or universal match, an optional name, classes, pseudo-states, negations and attribute or structural predicates.
public StyleSelectorCompound(string typeName, bool universal, string name, IReadOnlyList<string> classes, IReadOnlyList<string> pseudoStates, IReadOnlyList<StyleSelectorCompound> negations, IReadOnlyList<StyleSelectorPredicate> predicates)
Parameters
typeNamestringuniversalboolnamestringclassesIReadOnlyList<string>pseudoStatesIReadOnlyList<string>negationsIReadOnlyList<StyleSelectorCompound>predicatesIReadOnlyList<StyleSelectorPredicate>
Properties
Classes
public IReadOnlyList<string> Classes { get; }
Property Value
IsUniversal
public bool IsUniversal { get; }
Property Value
Name
public string Name { get; }
Property Value
Negations
public IReadOnlyList<StyleSelectorCompound> Negations { get; }
Property Value
Predicates
Attribute and structural predicates such as [data-x] or :nth-child().
public IReadOnlyList<StyleSelectorPredicate> Predicates { get; }
Property Value
PseudoStates
public IReadOnlyList<string> PseudoStates { get; }
Property Value
Specificity
public int Specificity { get; }
Property Value
TypeName
public string TypeName { get; }