Class
StorySourceText
ChartForgeX.Stories
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 14 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.
Returned or exposed by 7
- Method IStorySourceTokenizer.Tokenize
- Extension method StorySourceText.Language
- Method StorySourceText.AddSpan
- Method StorySourceText.Create
- Method StorySourceTextFluent.Language
- Property StorySourceTimeline.Source
- Property VisualStorySourceSurface.Source
Accepted by parameters 7
- Extension method StorySourceText.Language
- Method StorySourceTextFluent.Language
- Method StorySourceTimeline.Create
- Method StorySourceTimeline.Edit
- Method StorySourceTimeline.Paste
- Method StorySourceTimeline.Type
- Constructor VisualStorySourceSurface.VisualStorySourceSurface
Methods
AddSpan 2 overloads
public StorySourceText AddSpan(int start, int length, StorySyntaxKind kind) #Adds one ordered syntax span.
Parameters
- start int
- length int
- kind ChartForgeX.Stories.StorySyntaxKind
Returns
StorySourceTextpublic StorySourceText AddSpan(StorySourceSpan span) #Adds one ordered syntax span.
Parameters
- span ChartForgeX.Stories.StorySourceSpan
Returns
StorySourceTextpublic static StorySourceText Create(string text, string? language = null) #Creates source text without language-specific dependencies.
Parameters
- text string
- language string? = null
Returns
StorySourceTextInherited Methods
Properties
Extension Methods
public static StorySourceText Language(StorySourceText storySourceText, string value) #Sets StorySourceText.Language: Gets or sets the optional language identifier used by hosts and accessibility output. Blank values clear it; values are trimmed.
Parameters
- storySourceText ChartForgeX.Stories.StorySourceText
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
storySourceText.Language = value; storySourceText.Language(value);