Skip to content
ChartForgeX
Class

TextContent

ChartForgeX.Typography

Namespace
ChartForgeX.Typography
Assembly
ChartForgeX
Modifiers
sealed

Immutable native caption content. Plain semantic text is derived from its runs, never authored independently.

Inheritance

  • object
  • TextContent

Usage

Explore 17 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Methods

public static TextContent FromRuns(IEnumerable<TextContentRun> runs) #

Creates explicitly structured content from detached immutable runs.

Parameters

runs System.Collections.Generic.IEnumerable<ChartForgeX.Typography.TextContentRun> required
public static TextContent Plain(string text) #

Creates ordinary plain content, preserving the incumbent native string rendering path.

Parameters

text string required

Properties

public IReadOnlyList<TextContentRun> Runs { get; } #

Gets the immutable run sequence. Adjacent equal emphasis is canonicalized without changing text.

public string PlainText { get; } #

Gets the complete semantic text derived from Runs.

public bool IsStructured { get; } #

Gets whether the caller deliberately supplied inline content rather than an ordinary plain string.