Skip to content

TextStudioApplicationSelectorNode

StructTextStudioTextStudio
public struct TextStudioApplicationSelectorNode

One node in a compact indexed application-selector tree.

public static TextStudioApplicationSelectorNode All()

Creates a predicate node that selects every logical text unit.

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode None()

Creates a predicate node that selects no logical text units.

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Range(int start, int count, bool invert = false)

Creates an optionally inverted predicate for a start-and-count range of logical units within the current selector scope.

Parameters

NameType
startSystem.Int32
countSystem.Int32
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Range(TextStudioTextRange range, bool invert = false)

Creates an optionally inverted range predicate resolved from a half-open text range within the current selector scope.

Parameters

NameType
rangeTextStudio.TextStudioTextRange
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Tag(string tag, bool invert = false)

Creates an optionally inverted predicate for units inside the named text region.

Parameters

NameType
tagSystem.String
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode AppearanceTag(string id, bool invert = false)

Creates an optionally inverted predicate for units covered by an invocation of the named appearance.

Parameters

NameType
idSystem.String
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode SourceColor(Color color, float tolerance, bool invert = false)

Creates an optionally inverted predicate matching source color within the supplied tolerance.

Parameters

NameType
colorUnityEngine.Color
toleranceSystem.Single
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

Semantic(TextStudioSelectorSemanticState, bool)

Section titled “Semantic(TextStudioSelectorSemanticState, bool)”
public static TextStudioApplicationSelectorNode Semantic(TextStudioSelectorSemanticState state, bool invert = false)

Creates an optionally inverted predicate matching any requested semantic-state flag.

Parameters

NameType
stateTextStudio.TextStudioSelectorSemanticState
invertSystem.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

Coverage(TextStudioSelectorComparison, float)

Section titled “Coverage(TextStudioSelectorComparison, float)”
public static TextStudioApplicationSelectorNode Coverage(TextStudioSelectorComparison comparison, float value)

Creates a predicate comparing a text unit’s current coverage with the supplied scalar value.

Parameters

NameType
comparisonTextStudio.TextStudioSelectorComparison
valueSystem.Single

Returns

TextStudio.TextStudioApplicationSelectorNode

RenderProperty(string, TextStudioSelectorComparison, float)

Section titled “RenderProperty(string, TextStudioSelectorComparison, float)”
public static TextStudioApplicationSelectorNode RenderProperty(string propertyId, TextStudioSelectorComparison comparison, float value)

Creates a predicate comparing a render property’s unsigned value or first vector component with the supplied scalar.

Parameters

NameType
propertyIdSystem.String
comparisonTextStudio.TextStudioSelectorComparison
valueSystem.Single

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode And(int left, int right)

Creates a conjunction of the predicates at the supplied node indices.

Parameters

NameType
leftSystem.Int32
rightSystem.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Or(int left, int right)

Creates a disjunction of the predicates at the supplied node indices.

Parameters

NameType
leftSystem.Int32
rightSystem.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Within(int parent, int child)

Evaluates the child separately in each logical occurrence of the parent.

Parameters

NameType
parentSystem.Int32
childSystem.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Not(int child)

Creates a predicate that negates the child at the supplied node index.

Parameters

NameType
childSystem.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public TextStudioSelectorNodeKind Kind { get; }

Returns

TextStudio.TextStudioSelectorNodeKind

public int Left { get; }

Returns

System.Int32

public int Right { get; }

Returns

System.Int32

public int Count { get; }

Returns

System.Int32

public TextStudioTextRange TextRange { get; }

Returns

TextStudio.TextStudioTextRange

public bool UsesTextRange { get; }

Returns

System.Boolean

public string Key { get; }

Returns

System.String

public Color Color { get; }

Returns

UnityEngine.Color

public float Tolerance { get; }

Returns

System.Single

public float Value { get; }

Returns

System.Single

public TextStudioSelectorComparison Comparison { get; }

Returns

TextStudio.TextStudioSelectorComparison

public TextStudioSelectorSemanticState SemanticState { get; }

Returns

TextStudio.TextStudioSelectorSemanticState

public bool Invert { get; }

Returns

System.Boolean