Skip to content
ChartForgeX
Class

StorySourceTimeline

ChartForgeX.Stories

Namespace
ChartForgeX.Stories
Assembly
ChartForgeX.Stories
Modifiers
sealed

Authors resolved source edits without running a script or depending on a language parser.

Inheritance

  • object
  • StorySourceTimeline

Usage

Explore 9 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 1

Methods

public static StorySourceTimeline Create(StorySourceText initial) #

Creates an editor timeline from exact initial source, which may be empty.

Parameters

initial ChartForgeX.Stories.StorySourceText required
public StorySourceTimeline Delete(int start, int length, TimeSpan duration) #

Deletes a range, optionally over an authored duration.

Parameters

start int required
length int required
duration System.TimeSpan required
public StorySourceTimeline Edit(int start, int removeLength, StorySourceText insertion, TimeSpan duration) #

Replaces a UTF-16 range with resolved source. A zero duration pastes instantly; positive duration deletes then types whole Unicode elements.

Parameters

start int required
removeLength int required
insertion ChartForgeX.Stories.StorySourceText required
duration System.TimeSpan required
public StorySourceTimeline Paste(StorySourceText source) #

Pastes resolved source at the current caret.

Parameters

source ChartForgeX.Stories.StorySourceText required
public StorySourceTimeline Pause(TimeSpan duration) #

Holds the current editor state for reading.

Parameters

duration System.TimeSpan required
public StorySourceTimeline Select(int start, int length, TimeSpan duration) #

Shows a selection for the specified duration and moves the caret to its end.

Parameters

start int required
length int required
duration System.TimeSpan required
Type 2 overloads
public StorySourceTimeline Type(string text, TimeSpan duration) #

Types text at the current caret.

Parameters

text string required
duration System.TimeSpan required
public StorySourceTimeline Type(StorySourceText source, TimeSpan duration) #

Types resolved source, revealing its syntax colors together with whole Unicode text elements.

Parameters

source ChartForgeX.Stories.StorySourceText required
duration System.TimeSpan required

Properties

public StorySourceText Source { get; } #

Gets the completed document as an independent source observation.

public TimeSpan Duration { get; private set; } #

Gets the authored editing duration.