TextStudioApplicationSelector
public struct TextStudioApplicationSelectorCompact typed predicate tree used by persistent style layers and reusable by animation filters. Nodes are indexed rather than recursively allocated so evaluation can remain allocation free.
Methods
Section titled “Methods”
AppearanceTag(string)
Section titled “AppearanceTag(string)”public static TextStudioApplicationSelector AppearanceTag(string id)Creates a selector for text units covered by an invocation of the named appearance.
Parameters
| Name | Type |
|---|---|
id |
System.String |
Returns
TextStudio.TextStudioApplicationSelector
Create(TextStudioApplicationSelectorNode[], int)
Section titled “Create(TextStudioApplicationSelectorNode[], int)”public static TextStudioApplicationSelector Create(TextStudioApplicationSelectorNode[] nodes, int root)Creates a selector by taking a defensive copy of the indexed node program.
Parameters
| Name | Type |
|---|---|
nodes |
TextStudio.TextStudioApplicationSelectorNode[] |
root |
System.Int32 |
Returns
TextStudio.TextStudioApplicationSelector
TryGetNode(int, out TextStudioApplicationSelectorNode)
Section titled “TryGetNode(int, out TextStudioApplicationSelectorNode)”public bool TryGetNode(int index, out TextStudioApplicationSelectorNode node)Attempts to retrieve an indexed selector node, returning a default node when the index is invalid.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
node |
TextStudio.TextStudioApplicationSelectorNode |
Returns
System.Boolean
Properties
Section titled “Properties”
public int Root { get; }Returns
System.Int32
NodeCount
Section titled “NodeCount”public int NodeCount { get; }Returns
System.Int32
IsTrivialAll
Section titled “IsTrivialAll”public bool IsTrivialAll { get; }Returns
System.Boolean
public static TextStudioApplicationSelector All { get; }Returns
TextStudio.TextStudioApplicationSelector
public static TextStudioApplicationSelector None { get; }Returns
TextStudio.TextStudioApplicationSelector