Skip to content
ChartForgeX
Class

ChartStrokeStyle

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

Defines immutable stroke overrides for chart outlines, guides and reference lines.

Inheritance

  • object
  • ChartStrokeStyle

Usage

Explore 57 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 32

Constructors

public ChartStrokeStyle(ChartColor? color = null, double? width = null, double opacity = 1, IEnumerable<double>? dash = null) #

Creates stroke overrides without changing the source geometry or caption.

Parameters

color ChartForgeX.Primitives.ChartColor? = null optional
The optional authored color.
width double? = null optional
The optional width from zero through 1024 chart pixels.
opacity double = 1 optional
The opacity multiplier from zero through one.
dash System.Collections.Generic.IEnumerable<double>? = null optional
Optional dash/gap lengths from 0.25 through 1024 chart pixels; an empty sequence selects a solid stroke.

Properties

public ChartColor? Color { get; } #

Gets the authored stroke color. Null retains the mark's theme or series color.

public double? Width { get; } #

Gets the stroke width from zero through 1024 chart pixels. Null retains the theme width; zero hides the stroke.

public double Opacity { get; } #

Gets the opacity multiplier applied to the stroke color's alpha channel.

public IReadOnlyList<double>? Dash { get; } #

Gets alternating dash/gap lengths from 0.25 through 1024 chart pixels. Null retains the default pattern; an empty list is solid.