Skip to content
ChartForgeX
Struct

ChartGanttLaneItem

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
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 (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

Accepted by parameters 4

Constructors

ChartGanttLaneItem 2 overloads
public ChartGanttLaneItem(double start, double? end, string category, string? label = null, string? detail = null) #

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 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) #

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) #

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.

Properties

public double Start { get; } #

Gets the start instant as an OLE Automation date.

public double? End { get; } #

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

public bool IsOpen { get; } #

Gets a value indicating whether the item is still open.

public string Category { get; } #

Gets the category key.

public string? Label { get; } #

Gets optional short text drawn inside the bar.

public string? Detail { get; } #

Gets optional tooltip detail.

public ChartMarkOptions? MarkOptions { get; } #

Gets optional immutable navigation, accessibility and host metadata.