# ChartGanttItem

Describes one schedule task, milestone or vertical marker with its numeric schedule coordinates.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartGanttItem.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L21)

**Base**

`ValueType`

**Modifiers**

sealed

Describes one schedule task, milestone or vertical marker with its numeric schedule coordinates.

## Inheritance

- ValueType
- ChartGanttItem

## Remarks

Date constructors preserve the wall-clock OLE Automation date coordinates used by classic Gantt charts.

## Usage

 Explore 5 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 3

- Method [ChartGanttItem.OpenEnded](/api/chartforgex-core-chartganttitem/#method-openended-double-double)
- Method [ChartGanttItem.WithMarkOptions](/api/chartforgex-core-chartganttitem/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Property [ChartSeries.GanttItems](/api/chartforgex-core-chartseries/#property-ganttitems)

### Accepted by parameters 2

- Method [ChartSeries.ReplaceGanttItems](/api/chartforgex-core-chartseries/#method-replaceganttitems-collections-generic-ienumerable-chartforgex-core-chartganttitem) parameter `values`
- Method [ChartSeries.UpdateGanttItem](/api/chartforgex-core-chartseries/#method-updateganttitem-int32-chartforgex-core-chartganttitem) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartGanttItem 4 overloads 

 `public ChartGanttItem(double start, double end, double progress, bool isMilestone, bool isVerticalMarker)` [#](#constructor-ctor-double-double-double-boolean-boolean) 

[ChartGanttItem.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L21)

Creates a fixed task, milestone or marker with the established five-argument constructor contract.

Parameters

**start double required**

**end double required**

**progress double required**

**isMilestone bool required**

**isVerticalMarker bool required**

 `public ChartGanttItem(DateTime start, DateTime end, double progress, bool isMilestone, bool isVerticalMarker)` [#](#constructor-ctor-datetime-datetime-double-boolean-boolean) 

[ChartGanttItem.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L25)

Creates a fixed item from wall-clock date bounds with the established five-argument constructor contract.

Parameters

**start System.DateTime required**

**end System.DateTime required**

**progress double required**

**isMilestone bool required**

**isVerticalMarker bool required**

 `public ChartGanttItem(double start, double end, double progress = 0, bool isMilestone = false, bool isVerticalMarker = false, bool isOpenEnded = false)` [#](#constructor-ctor-double-double-double-boolean-boolean-boolean) 

[ChartGanttItem.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L30)

Creates a task, milestone or marker. The chart owns dependency relationships separately from these observations.

Parameters

**start double required**

**end double required**

**progress double = 0 optional**

**isMilestone bool = false optional**

**isVerticalMarker bool = false optional**

**isOpenEnded bool = false optional**

 `public ChartGanttItem(DateTime start, DateTime end, double progress = 0, bool isMilestone = false, bool isVerticalMarker = false, bool isOpenEnded = false)` [#](#constructor-ctor-datetime-datetime-double-boolean-boolean-boolean) 

[ChartGanttItem.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L43)

Creates an item from wall-clock date bounds.

Parameters

**start System.DateTime required**

**end System.DateTime required**

**progress double = 0 optional**

**isMilestone bool = false optional**

**isVerticalMarker bool = false optional**

**isOpenEnded bool = false optional**

## Methods

 OpenEnded 2 overloads 

 `public static ChartGanttItem OpenEnded(double start, double progress = 0)` [#](#method-openended-double-double) 

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

Creates a task with no fixed end. Its stored end equals start; rendering resolves the visible endpoint from the chart domain.

Parameters

**start double required**

**progress double = 0 optional**

Returns

 `ChartGanttItem` 

 `public static ChartGanttItem OpenEnded(DateTime start, double progress = 0)` [#](#method-openended-datetime-double) 

[ChartGanttItem.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L52)

Creates an open task from a wall-clock date, using the classic Gantt coordinate convention.

Parameters

**start System.DateTime required**

**progress double = 0 optional**

Returns

 `ChartGanttItem` 

 `public ChartGanttItem WithMarkOptions(ChartMarkOptions? options)` [#](#method-withmarkoptions-chartforgex-core-chartmarkoptions) 

[ChartGanttItem.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L60)

Returns a copy with replacement mark metadata, retaining all authored values.

Parameters

**options ChartForgeX.Core.ChartMarkOptions? required**

Immutable metadata, or null to clear it.

Returns

 `ChartGanttItem` A new observation. The current observation is unchanged. 

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public double Start { get; }` [#](#property-start) 

[ChartGanttItem.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L9)

Gets the start coordinate, or the line coordinate for a vertical marker.

 `public double End { get; }` [#](#property-end) 

[ChartGanttItem.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L11)

Gets the end coordinate included in the schedule window.

 `public double Progress { get; }` [#](#property-progress) 

[ChartGanttItem.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L13)

Gets completion as a fraction between zero and one.

 `public bool IsMilestone { get; }` [#](#property-ismilestone) 

[ChartGanttItem.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L15)

Gets whether the item paints a milestone diamond.

 `public bool IsVerticalMarker { get; }` [#](#property-isverticalmarker) 

[ChartGanttItem.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L17)

Gets whether the item paints a vertical reference marker without reserving a task row.

 `public bool IsOpenEnded { get; }` [#](#property-isopenended) 

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

Gets whether this task continues beyond its authored start with no fixed end.

 `public ChartMarkOptions? MarkOptions { get; }` [#](#property-markoptions) 

[ChartGanttItem.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttItem.cs#L55)

Gets optional immutable navigation, accessibility and host metadata.

<!-- PowerForge markdown artifact sha256:CD7A45FD34ED5CD9572D0DAFCACDA495DAE9B5FF6AE7DBA1AE4A799D9FD26E24 -->
