Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

StorySourceText

Namespace ChartForgeX.Stories
Assembly ChartForgeX.Stories
Modifiers sealed

Keeps exact source text together with optional dependency-free syntax spans. Tokenizers live in adapters and map their language-specific tokens into this model.

Inheritance

  • Object
  • StorySourceText

Usage

Explore 11 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 5

Methods

AddSpan 2 overloads
public StorySourceText AddSpan(Int32 start, Int32 length, StorySyntaxKind kind) #
Returns: StorySourceText

Adds one ordered syntax span.

Parameters

start System.Int32 requiredposition: 0
length System.Int32 requiredposition: 1
kind ChartForgeX.Stories.StorySyntaxKind requiredposition: 2
public StorySourceText AddSpan(StorySourceSpan span) #
Returns: StorySourceText

Adds one ordered syntax span.

Parameters

span ChartForgeX.Stories.StorySourceSpan requiredposition: 0
public static StorySourceText Create(String text, String? language = null) #
Returns: StorySourceText

Creates source text without language-specific dependencies.

Parameters

text System.String requiredposition: 0
language System.String? = null optionalposition: 1
public StorySourceText WithLanguage(String? language) #
Returns: StorySourceText

Sets an optional language identifier used by hosts and accessibility output.

Parameters

language System.String? requiredposition: 0

Properties

public String Text { get; } #

Gets the exact source text, including whitespace.

public String Language { get; } #

Gets the optional language identifier.

public IReadOnlyList<StorySourceSpan> Spans { get; } #

Gets ordered, non-overlapping syntax spans.