Summary
Holds the result of a
Selector
match.
- Namespace
- Avalonia
.Styling - Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type["SelectorMatch"]
class Type type-node
Syntax
public readonly struct SelectorMatch : ValueType
Remarks
A selector match describes whether and how a
Selector
matches a control, and
in addition whether the selector can ever match a control of the same type.
Constructors
Name | Summary |
---|---|
SelectorMatch |
Initializes a new instance of the SelectorMatch class with a
Sometimes result.
|
SelectorMatch |
Initializes a new instance of the SelectorMatch class with the specified result.
|
Fields
Name | Constant Value | Summary |
---|---|---|
AlwaysThisInstance |
Gets a selector match with the result of
AlwaysThisInstance .
static
|
|
AlwaysThisType |
A selector match with the result of
AlwaysThisType .
static
|
|
NeverThisInstance |
A selector match with the result of
NeverThisInstance .
static
|
|
NeverThisType |
A selector match with the result of
NeverThisType .
static
|
Properties
Name | Value | Summary |
---|---|---|
Activator | IStyleActivator? |
Gets an activator which tracks the selector match, in the case of selectors that can
change over time.
|
IsMatch | bool |
Gets a value indicating whether the match was positive.
|
Result | SelectorMatchResult |
Gets the result of the match.
|
Methods
Name | Value | Summary |
---|---|---|
And |
SelectorMatch |
Logical ANDs this
SelectorMatch with another.
|
ToString |
string |