Class StyleSelectorPredicate

Namespace
Forma.Xaml
Assembly
Forma.dll

An attribute ([data-state="open"]) or structural (:first-child, :nth-child(2n+1)) condition of a compound selector.

public sealed class StyleSelectorPredicate
Inheritance
StyleSelectorPredicate
Inherited Members

Constructors

StyleSelectorPredicate(string, string, string, int, int)

Creates a predicate of the given kind with its name, value and An+B coefficients.

public StyleSelectorPredicate(string kind, string name, string value, int a, int b)

Parameters

kind string
name string
value string
a int
b int

Properties

A

The A coefficient of an An+B expression.

public int A { get; }

Property Value

int

B

The B coefficient of an An+B expression.

public int B { get; }

Property Value

int

Kind

One of attribute, first-child, last-child, only-child, empty, nth-child.

public string Kind { get; }

Property Value

string

Name

Attribute name for an attribute predicate.

public string Name { get; }

Property Value

string

Value

Expected attribute value, if any.

public string Value { get; }

Property Value

string