StorySourceTimeline
ChartForgeX.Stories
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.
Returned or exposed by 8
- Method StorySourceTimeline.Create
- Method StorySourceTimeline.Delete
- Method StorySourceTimeline.Edit
- Method StorySourceTimeline.Paste
- Method StorySourceTimeline.Pause
- Method StorySourceTimeline.Select
- Method StorySourceTimeline.Type
- Property VisualStorySourceSurface.Timeline
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
Returns
StorySourceTimelinepublic StorySourceTimeline Delete(int start, int length, TimeSpan duration) #Deletes a range, optionally over an authored duration.
Parameters
- start int
- length int
- duration System.TimeSpan
Returns
StorySourceTimelinepublic 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
- removeLength int
- insertion ChartForgeX.Stories.StorySourceText
- duration System.TimeSpan
Returns
StorySourceTimelinepublic StorySourceTimeline Paste(StorySourceText source) #Pastes resolved source at the current caret.
Parameters
- source ChartForgeX.Stories.StorySourceText
Returns
StorySourceTimelinepublic StorySourceTimeline Pause(TimeSpan duration) #Holds the current editor state for reading.
Parameters
- duration System.TimeSpan
Returns
StorySourceTimelinepublic 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
- length int
- duration System.TimeSpan
Returns
StorySourceTimelinepublic StorySourceTimeline Type(string text, TimeSpan duration) #Types text at the current caret.
Parameters
- text string
- duration System.TimeSpan
Returns
StorySourceTimelinepublic StorySourceTimeline Type(StorySourceText source, TimeSpan duration) #Types resolved source, revealing its syntax colors together with whole Unicode text elements.
Parameters
- source ChartForgeX.Stories.StorySourceText
- duration System.TimeSpan
Returns
StorySourceTimeline