Skip to content

TextStudioApplicationSelector

StructTextStudioTextStudio
public struct TextStudioApplicationSelector

Compact 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.

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

public int Root { get; }

Returns

System.Int32

public int NodeCount { get; }

Returns

System.Int32

public bool IsTrivialAll { get; }

Returns

System.Boolean

public static TextStudioApplicationSelector All { get; }

Returns

TextStudio.TextStudioApplicationSelector

public static TextStudioApplicationSelector None { get; }

Returns

TextStudio.TextStudioApplicationSelector