ITextStudioContent
public interface ITextStudioContentFocused content contract shared by component and UI Toolkit hosts. Use this view when a caller owns text content but not playback policy.
Methods
Section titled “Methods”
SetText(string)
Section titled “SetText(string)”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. |
SetTextDeferred(string)
Section titled “SetTextDeferred(string)”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. |
AppendText(string)
Section titled “AppendText(string)”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. |
ClearText()
Section titled “ClearText()”void ClearText()Clears authored content, compiled state, and visible output.
Properties
Section titled “Properties”
Markup
Section titled “Markup”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