Skip to content
ChartForgeX
Class

ChartStrokeSegment

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

Restyles a connected series stroke from a source X coordinate onward, such as a dashed forecast after the last actual.

Inheritance

  • object
  • ChartStrokeSegment

Remarks

The segment runs until the next segment's ChartStrokeSegment.FromX. Unset style members inherit the series ChartSeries.StrokeStyle, then the series color and theme width, so a forecast usually sets only its dash. Its opacity multiplies the series stroke opacity.

Usage

Explore 1 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 1

Constructors

ChartStrokeSegment 2 overloads
public ChartStrokeSegment(double fromX, ChartStrokeStyle style) #

Creates a stroke segment starting at a numeric source X coordinate.

Parameters

fromX double required
The finite source X where the style starts. Stroke exactly at this X belongs to the segment.
style ChartForgeX.Core.ChartStrokeStyle required
The stroke overrides applied from fromX onward.
public ChartStrokeSegment(DateTime fromX, ChartStrokeStyle style) #

Creates a stroke segment starting at a date/time source X coordinate.

Parameters

fromX System.DateTime required
The date/time where the style starts.
style ChartForgeX.Core.ChartStrokeStyle required
The stroke overrides applied from fromX onward.

Properties

public double FromX { get; } #

Gets the source X where the style starts.

public ChartStrokeStyle Style { get; } #

Gets the stroke overrides applied from ChartStrokeSegment.FromX until the next segment.