# HtmlScheduleEditState

The accepted Gantt lane state that the browser editor exports through getScheduleState() and the cfxschedulechange event.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlScheduleEditState.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlScheduleEditState.cs#L26)

**Modifiers**

sealed

The accepted Gantt lane state that the browser editor exports through getScheduleState() and the cfxschedulechange event. Apply it to the source chart to render the accepted edits as SVG, PNG or HTML.

## Inheritance

- object
- HtmlScheduleEditState

## Usage

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

- Method [HtmlScheduleEditState.Parse](/api/chartforgex-interactivity-html-htmlscheduleeditstate/#method-parse-string)

 Filter members   

    Show inherited   

 

## Methods

 `public Chart ApplyTo(Chart chart)` [#](#method-applyto-chartforgex-core-chart) 

[HtmlScheduleEditState.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlScheduleEditState.cs#L68)

Replaces the items of each listed Gantt lane with the accepted items. Items that keep their sourceLane and source keep their original label, detail, label presentation, fill pattern and mark options unless the state names new values. Explicit observation IDs stay with items that remain in their original series. Lanes the state does not list are unchanged.

Parameters

**chart ChartForgeX.Core.Chart required**

The chart the edited page was rendered from.

Returns

 `Chart` The same chart, for chaining. 

 `public static HtmlScheduleEditState Parse(string json)` [#](#method-parse-string) 

[HtmlScheduleEditState.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlScheduleEditState.cs#L26)

Reads the JSON the browser editor exports.

Parameters

**json string required**

The state JSON: {"lanes":[{"id":"…","items":[{"start":…,"end":…,"category":"…"}]}]}, with start and end as OLE Automation dates and optional sourceLane, source, label and detail.

Returns

 `HtmlScheduleEditState` The parsed state. 

 `public string ToJson()` [#](#method-tojson) 

[HtmlScheduleEditState.cs:122](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlScheduleEditState.cs#L122)

Writes the state as the same JSON the browser exports.

Returns

 `string` The JSON text. 

## 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 IReadOnlyList<HtmlScheduleEditLane> Lanes { get; }` [#](#property-lanes) 

[HtmlScheduleEditState.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlScheduleEditState.cs#L19)

Gets the edited lanes, in the order the browser listed them.

<!-- PowerForge markdown artifact sha256:86786EDCCDC0E3C8737658639D727728A7565FB8A9BEFB8ABCCF77B4D513BE9B -->
