Skip to content
ChartForgeX
Struct

ChartStateTimelineSegment

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Base
ValueType
Modifiers
sealed

Represents one interval of a state timeline lane. Start and end are OLE Automation dates holding UTC instants. Time between segments is rendered as a gap (no data).

Inheritance

  • ValueType
  • ChartStateTimelineSegment

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.

Accepted by parameters 4

Constructors

ChartStateTimelineSegment 2 overloads
public ChartStateTimelineSegment(double start, double end, string state, string? detail = null) #

Initializes a segment from OLE Automation date values.

Parameters

start double required
The inclusive start instant.
end double required
The exclusive end instant; must be later than start.
state string required
The key of the state that applies during the interval.
detail string? = null optional
Optional detail text shown in tooltips.
public ChartStateTimelineSegment(DateTime start, DateTime end, string state, string? detail = null) #

Initializes a segment 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. DateTime inputs are rounded to 100-microsecond time-axis resolution; shorter intervals are rejected.

Parameters

start System.DateTime required
The inclusive start.
end System.DateTime required
The exclusive end; must be later than start.
state string required
The key of the state that applies during the interval.
detail string? = null optional
Optional detail text shown in tooltips.

Methods

public ChartStateTimelineSegment 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

ChartStateTimelineSegment A new observation. The current observation is unchanged.

Properties

public double Start { get; } #

Gets the inclusive start instant as an OLE Automation date.

public double End { get; } #

Gets the exclusive end instant as an OLE Automation date.

public string State { get; } #

Gets the state key.

public string? Detail { get; } #

Gets optional detail text shown in tooltips.

public ChartMarkOptions? MarkOptions { get; } #

Gets optional immutable navigation, accessibility and host metadata.