# ChartGanttLaneItem

Represents one item in a Gantt lane, such as an incident: a start, an optional end, a category key resolved through ChartStateTimelineOptions.Categories (for…

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Represents one item in a Gantt lane, such as an incident: a start, an optional end, a category key resolved through [ChartStateTimelineOptions.Categories](/api/chartforgex-core-chartstatetimelineoptions/) (for example a severity), a short label, and optional tooltip detail. Times are OLE Automation dates holding UTC instants.

## Inheritance

- ValueType
- ChartGanttLaneItem

## Usage

 Explore 6 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 2

- Method [ChartGanttLaneItem.WithMarkOptions](/api/chartforgex-core-chartganttlaneitem/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Property [ChartSeries.GanttLaneItems](/api/chartforgex-core-chartseries/#property-ganttlaneitems)

### Accepted by parameters 4

- Method [Chart.AddGanttLane](/api/chartforgex-core-chart/#method-addganttlane-string-collections-generic-ienumerable-chartforgex-core-chartganttlaneitem-string-string-nullable-chartforgex-core-chartseriesid) parameter `items`
- Method [ChartSeries.CreateGanttLane](/api/chartforgex-core-chartseries/#method-createganttlane-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartganttlaneitem-string-string) parameter `items`
- Method [ChartSeries.ReplaceGanttLaneItems](/api/chartforgex-core-chartseries/#method-replaceganttlaneitems-collections-generic-ienumerable-chartforgex-core-chartganttlaneitem) parameter `values`
- Method [ChartSeries.UpdateGanttLaneItem](/api/chartforgex-core-chartseries/#method-updateganttlaneitem-int32-chartforgex-core-chartganttlaneitem) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartGanttLaneItem 2 overloads 

 `public ChartGanttLaneItem(double start, double? end, string category, string? label = null, string? detail = null)` [#](#constructor-ctor-double-nullable-system-double-string-string-string) 

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

Initializes an item from OLE Automation date values. Representable intervals must span distinct instants at the 100-microsecond time-axis display resolution.

Parameters

**start double required**

The start instant.

**end double? required**

The end instant, later than start, or null while the item is still open; open items run to the UTC instant set by [Chart.GanttLaneNow](/api/chartforgex-core-chart/) or, when that is not set, slightly past the latest time in the chart.

**category string required**

The category key, for example critical.

**label string? = null optional**

Optional short text drawn inside the bar when it fits.

**detail string? = null optional**

Optional detail text shown in tooltips.

 `public ChartGanttLaneItem(DateTime start, DateTime? end, string category, string? label = null, string? detail = null)` [#](#constructor-ctor-datetime-nullable-system-datetime-string-string-string) 

[ChartGanttLaneItem.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L48)

Initializes an item from date/time values. DateTimeKind.Local values are converted to UTC; DateTimeKind.Unspecified values are treated as UTC. Both instants must be on or after 1899-12-30 UTC so OLE values stay chronologically ordered. DateTime inputs are rounded to 100-microsecond time-axis resolution; shorter intervals are rejected.

Parameters

**start System.DateTime required**

The start.

**end System.DateTime? required**

The end, or null while the item is still open.

**category string required**

The category key, for example critical.

**label string? = null optional**

Optional short text drawn inside the bar when it fits.

**detail string? = null optional**

Optional detail text shown in tooltips.

## Methods

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

[ChartGanttLaneItem.cs:77](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L77)

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

 `ChartGanttLaneItem` 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) 

[ChartGanttLaneItem.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L53)

Gets the start instant as an OLE Automation date.

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

[ChartGanttLaneItem.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L56)

Gets the end instant as an OLE Automation date, or null while the item is open.

 `public bool IsOpen { get; }` [#](#property-isopen) 

[ChartGanttLaneItem.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L59)

Gets a value indicating whether the item is still open.

 `public string Category { get; }` [#](#property-category) 

[ChartGanttLaneItem.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L62)

Gets the category key.

 `public string? Label { get; }` [#](#property-label) 

[ChartGanttLaneItem.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L65)

Gets optional short text drawn inside the bar.

 `public string? Detail { get; }` [#](#property-detail) 

[ChartGanttLaneItem.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L68)

Gets optional tooltip detail.

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

[ChartGanttLaneItem.cs:72](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttLaneItem.cs#L72)

Gets optional immutable navigation, accessibility and host metadata.

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