Skip to content

ITextStudioContent

InterfaceTextStudioTextStudio
public interface ITextStudioContent

Focused content contract shared by component and UI Toolkit hosts. Use this view when a caller owns text content but not playback policy.

void SetText(string markup)

Replaces the current markup and applies the change immediately.

Parameters

Name Type Description
markup System.String Markup to compile. A null value is treated as empty text.
void SetTextDeferred(string markup)

Schedules a text replacement for the host’s next update, coalescing multiple pending replacements.

Parameters

Name Type Description
markup System.String Markup to compile. A null value is treated as empty text.
void AppendText(string markup)

Appends markup and recompiles the combined content.

Parameters

Name Type Description
markup System.String Markup to append. Null or empty input leaves the content unchanged.
void ClearText()

Clears authored content, compiled state, and visible output.

string Markup { get; }

Gets the authored markup, including Text Studio tags.

Returns

System.String

string Text { get; }

Gets the visible plain-text content after markup processing.

Returns

System.String

TextStudioPlanView Plan { get; }

Gets a transient, allocation-free view of the compiled semantic plan. Do not retain the view after the current callback or frame.

Returns

TextStudio.TextStudioPlanView