# StorySourceTimeline

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

 Class  

`ChartForgeX.Stories`

**Namespace**

`ChartForgeX.Stories`

**Assembly**

`ChartForgeX.Stories`

**Source**

[StorySourceTimeline.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L20)

**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.

### Returned or exposed by 8

- Method [StorySourceTimeline.Create](/api/chartforgex-stories-storysourcetimeline/#method-create-chartforgex-stories-storysourcetext)
- Method [StorySourceTimeline.Delete](/api/chartforgex-stories-storysourcetimeline/#method-delete-int32-int32-timespan)
- Method [StorySourceTimeline.Edit](/api/chartforgex-stories-storysourcetimeline/#method-edit-int32-int32-chartforgex-stories-storysourcetext-timespan)
- Method [StorySourceTimeline.Paste](/api/chartforgex-stories-storysourcetimeline/#method-paste-chartforgex-stories-storysourcetext)
- Method [StorySourceTimeline.Pause](/api/chartforgex-stories-storysourcetimeline/#method-pause-timespan)
- Method [StorySourceTimeline.Select](/api/chartforgex-stories-storysourcetimeline/#method-select-int32-int32-timespan)
- Method [StorySourceTimeline.Type](/api/chartforgex-stories-storysourcetimeline/#method-type-string-timespan)
- Property [VisualStorySourceSurface.Timeline](/api/chartforgex-stories-visualstorysourcesurface/#property-timeline)

### Accepted by parameters 1

- Constructor [VisualStorySourceSurface.VisualStorySourceSurface](/api/chartforgex-stories-visualstorysourcesurface/#constructor-ctor-chartforgex-stories-storysourcetimeline-string-chartforgex-stories-visualstorysourceoptions) parameter `timeline`

 Filter members   

    Show inherited   

 

## Methods

 `public static StorySourceTimeline Create(StorySourceText initial)` [#](#method-create-chartforgex-stories-storysourcetext) 

[StorySourceTimeline.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L20)

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

Parameters

**initial ChartForgeX.Stories.StorySourceText required**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Delete(int start, int length, TimeSpan duration)` [#](#method-delete-int32-int32-timespan) 

[StorySourceTimeline.cs:46](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L46)

Deletes a range, optionally over an authored duration.

Parameters

**start int required**

**length int required**

**duration System.TimeSpan required**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Edit(int start, int removeLength, StorySourceText insertion, TimeSpan duration)` [#](#method-edit-int32-int32-chartforgex-stories-storysourcetext-timespan) 

[StorySourceTimeline.cs:29](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L29)

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**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Paste(StorySourceText source)` [#](#method-paste-chartforgex-stories-storysourcetext) 

[StorySourceTimeline.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L44)

Pastes resolved source at the current caret.

Parameters

**source ChartForgeX.Stories.StorySourceText required**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Pause(TimeSpan duration)` [#](#method-pause-timespan) 

[StorySourceTimeline.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L54)

Holds the current editor state for reading.

Parameters

**duration System.TimeSpan required**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Select(int start, int length, TimeSpan duration)` [#](#method-select-int32-int32-timespan) 

[StorySourceTimeline.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L49)

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**

Returns

 `StorySourceTimeline` 

 Type 2 overloads 

 `public StorySourceTimeline Type(string text, TimeSpan duration)` [#](#method-type-string-timespan) 

[StorySourceTimeline.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L39)

Types text at the current caret.

Parameters

**text string required**

**duration System.TimeSpan required**

Returns

 `StorySourceTimeline` 

 `public StorySourceTimeline Type(StorySourceText source, TimeSpan duration)` [#](#method-type-chartforgex-stories-storysourcetext-timespan) 

[StorySourceTimeline.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L42)

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

Parameters

**source ChartForgeX.Stories.StorySourceText required**

**duration System.TimeSpan required**

Returns

 `StorySourceTimeline` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public StorySourceText Source { get; }` [#](#property-source) 

[StorySourceTimeline.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L22)

Gets the completed document as an independent source observation.

 `public TimeSpan Duration { get; private set; }` [#](#property-duration) 

[StorySourceTimeline.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/StorySourceTimeline.cs#L24)

Gets the authored editing duration.

<!-- PowerForge markdown artifact sha256:2EC2E4F924E0141D944552E71597236773351DD46A796D6C4C66988538B2B326 -->
