Skip to content
ChartForgeX
Struct

ChartGanttItem

ChartForgeX.Core

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

Accepted by parameters 2

Constructors

ChartGanttItem 4 overloads
public ChartGanttItem(double start, double end, double progress, bool isMilestone, bool isVerticalMarker) #

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

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

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

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

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
public static ChartGanttItem OpenEnded(DateTime start, double progress = 0) #

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

Parameters

start System.DateTime required
progress double = 0 optional
public ChartGanttItem 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

ChartGanttItem A new observation. The current observation is unchanged.

Properties

public double Start { get; } #

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

public double End { get; } #

Gets the end coordinate included in the schedule window.

public double Progress { get; } #

Gets completion as a fraction between zero and one.

public bool IsMilestone { get; } #

Gets whether the item paints a milestone diamond.

public bool IsVerticalMarker { get; } #

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

public bool IsOpenEnded { get; } #

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

public ChartMarkOptions? MarkOptions { get; } #

Gets optional immutable navigation, accessibility and host metadata.