Skip to content

TextStudioTimingContext

StructTextStudioTextStudio
public readonly struct TextStudioTimingContext

Allocation-free semantic context supplied to custom reveal timing assets.

public char GetResolvedCharacter(int offset)

Gets a character relative to the current resolved unit, or a null character outside the transient plan.

Parameters

Name Type
offset System.Int32

Returns

System.Char

public TextStudioPlanView Plan { get; }

Returns

TextStudio.TextStudioPlanView

public int UnitIndex { get; }

Returns

System.Int32

public int WordIndex { get; }

Returns

System.Int32

public int LineIndex { get; }

Returns

System.Int32

public int ParagraphIndex { get; }

Returns

System.Int32

public int ResolvedStart { get; }

Returns

System.Int32

public int ResolvedLength { get; }

Returns

System.Int32

public int PreviousUnitIndex { get; }

Returns

System.Int32

public int NextUnitIndex { get; }

Returns

System.Int32

public bool IsFirstUnit { get; }

Returns

System.Boolean

public bool IsLastUnit { get; }

Returns

System.Boolean

public bool IsLastVisibleUnit { get; }

Returns

System.Boolean

public bool IsWhiteSpace { get; }

Returns

System.Boolean

public bool IsLineBreak { get; }

Returns

System.Boolean

public bool IsPunctuation { get; }

Returns

System.Boolean

public bool IsInstant { get; }

Returns

System.Boolean

public string ResolvedText { get; }

Returns

System.String

public char PrimaryCharacter { get; }

Returns

System.Char