Skip to content
ChartForgeX

API Reference

Class

ChartStrokeStyle

Namespace ChartForgeX.Core
Assembly ChartForgeX
Modifiers sealed

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

Inheritance

  • Object
  • ChartStrokeStyle

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.

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 optionalposition: 0
The optional authored color.
width System.Double? = null optionalposition: 1
The optional width from zero through 1024 chart pixels.
opacity System.Double = 1 optionalposition: 2
The opacity multiplier from zero through one.
dash System.Collections.Generic.IEnumerable<System.Double>? = null optionalposition: 3
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.