API Reference
StorySourceTimeline
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) #StorySourceTimelineCreates an editor timeline from exact initial source, which may be empty.
Parameters
- initial ChartForgeX.Stories.StorySourceText
public StorySourceTimeline Delete(Int32 start, Int32 length, TimeSpan duration) #StorySourceTimelineDeletes a range, optionally over an authored duration.
Parameters
- start System.Int32
- length System.Int32
- duration System.TimeSpan
public StorySourceTimeline Edit(Int32 start, Int32 removeLength, StorySourceText insertion, TimeSpan duration) #StorySourceTimelineReplaces a UTF-16 range with resolved source. A zero duration pastes instantly; positive duration deletes then types whole Unicode elements.
Parameters
- start System.Int32
- removeLength System.Int32
- insertion ChartForgeX.Stories.StorySourceText
- duration System.TimeSpan
public StorySourceTimeline Paste(StorySourceText source) #StorySourceTimelinePastes resolved source at the current caret.
Parameters
- source ChartForgeX.Stories.StorySourceText
public StorySourceTimeline Pause(TimeSpan duration) #StorySourceTimelineHolds the current editor state for reading.
Parameters
- duration System.TimeSpan
public StorySourceTimeline Select(Int32 start, Int32 length, TimeSpan duration) #StorySourceTimelineShows a selection for the specified duration and moves the caret to its end.
Parameters
- start System.Int32
- length System.Int32
- duration System.TimeSpan
public StorySourceTimeline Type(String text, TimeSpan duration) #StorySourceTimelineTypes text at the current caret.
Parameters
- text System.String
- duration System.TimeSpan
public StorySourceTimeline Type(StorySourceText source, TimeSpan duration) #StorySourceTimelineTypes resolved source, revealing its syntax colors together with whole Unicode text elements.
Parameters
- source ChartForgeX.Stories.StorySourceText
- duration System.TimeSpan
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?