# ChartStrokeStyle

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

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartStrokeStyle.cs:29](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L29)

**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.

### Returned or exposed by 25

- Property [ChartAnnotation.StrokeStyle](/api/chartforgex-core-chartannotation/#property-strokestyle)
- Property [ChartFlowStyle.OutlineStroke](/api/chartforgex-core-chartflowstyle/#property-outlinestroke)
- Property [ChartFunnelConnectorStyle.OutlineStroke](/api/chartforgex-core-chartfunnelconnectorstyle/#property-outlinestroke)
- Property [ChartFunnelOptions.StageOutline](/api/chartforgex-core-chartfunneloptions/#property-stageoutline)
- Property [ChartGanttOptions.TodayStyle](/api/chartforgex-core-chartganttoptions/#property-todaystyle)
- Property [ChartItemStyle.Stroke](/api/chartforgex-core-chartitemstyle/#property-stroke)
- Property [ChartMarkerOptions.OutlineStroke](/api/chartforgex-core-chartmarkeroptions/#property-outlinestroke)
- Property [ChartPieOptions.OuterOutline](/api/chartforgex-core-chartpieoptions/#property-outeroutline)
- Property [ChartPieOptions.SliceOutline](/api/chartforgex-core-chartpieoptions/#property-sliceoutline)
- Property [ChartPlotRegion.Border](/api/chartforgex-core-chartplotregion/#property-border)
- Property [ChartPolarLayoutOptions.AxisStroke](/api/chartforgex-core-chartpolarlayoutoptions/#property-axisstroke)
- Property [ChartPolarLayoutOptions.GridStroke](/api/chartforgex-core-chartpolarlayoutoptions/#property-gridstroke)
- Property [ChartPolarOptions.OutlineStroke](/api/chartforgex-core-chartpolaroptions/#property-outlinestroke)
- Property [ChartPyramidOptions.PartitionOutline](/api/chartforgex-core-chartpyramidoptions/#property-partitionoutline)
- Property [ChartRadarOptions.OutlineStroke](/api/chartforgex-core-chartradaroptions/#property-outlinestroke)
- Property [ChartSeries.StrokeStyle](/api/chartforgex-core-chartseries/#property-strokestyle)
- Property [ChartStrokeSegment.Style](/api/chartforgex-core-chartstrokesegment/#property-style)
- Property [MermaidBlockEdge.Stroke](/api/chartforgex-mermaid-mermaidblockedge/#property-stroke)
- Property [MermaidGanttRenderOptions.TodayStyle](/api/chartforgex-mermaid-mermaidganttrenderoptions/#property-todaystyle)
- Property [MermaidQuadrantRenderOptions.RegionBorder](/api/chartforgex-mermaid-mermaidquadrantrenderoptions/#property-regionborder)
- Property [SequenceArtifactPaint.LifelineStroke](/api/chartforgex-visualartifacts-sequenceartifactpaint/#property-lifelinestroke)
- Property [VisualArtifactInterchangeSequenceArtifact.LifelineStroke](/api/chartforgex-visualartifacts-visualartifactinterchangesequenceartifact/#property-lifelinestroke)
- Property [BlockLayoutEdge.Stroke](/api/chartforgex-visualblocks-blocklayoutedge/#property-stroke)
- Property [BlockLayoutItem.Stroke](/api/chartforgex-visualblocks-blocklayoutitem/#property-stroke)
- Property [WardleyMapPipeline.Outline](/api/chartforgex-visualblocks-wardleymappipeline/#property-outline)

### Accepted by parameters 32

- Extension method [ChartAnnotation.StrokeStyle](/api/chartforgex-core-chartannotation/#extension-strokestyle-chartforgex-core-chartannotation-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartAnnotationFluent.StrokeStyle](/api/chartforgex-core-chartannotationfluent/#method-strokestyle-chartforgex-core-chartannotation-chartforgex-core-chartstrokestyle) parameter `value`
- Constructor [ChartFlowStyle.ChartFlowStyle](/api/chartforgex-core-chartflowstyle/#constructor-ctor-nullable-chartforgex-primitives-chartcolor-nullable-system-double-nullable-chartforgex-core-chartfillpattern-nullable-chartforgex-primitives-chartcolor-nullable-system-double-nullable-system-double-chartforgex-core-chartstrokestyle-double) parameter `outlineStroke`
- Constructor [ChartFunnelConnectorStyle.ChartFunnelConnectorStyle](/api/chartforgex-core-chartfunnelconnectorstyle/#constructor-ctor-boolean-nullable-chartforgex-primitives-chartcolor-nullable-system-double-nullable-chartforgex-core-chartfillpattern-chartforgex-core-chartstrokestyle-double) parameter `outlineStroke`
- Extension method [ChartFunnelOptions.StageOutline](/api/chartforgex-core-chartfunneloptions/#extension-stageoutline-chartforgex-core-chartfunneloptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartFunnelOptionsFluent.StageOutline](/api/chartforgex-core-chartfunneloptionsfluent/#method-stageoutline-chartforgex-core-chartfunneloptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartGanttOptions.TodayStyle](/api/chartforgex-core-chartganttoptions/#extension-todaystyle-chartforgex-core-chartganttoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartGanttOptionsFluent.TodayStyle](/api/chartforgex-core-chartganttoptionsfluent/#method-todaystyle-chartforgex-core-chartganttoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Constructor [ChartItemStyle.ChartItemStyle](/api/chartforgex-core-chartitemstyle/#constructor-ctor-nullable-chartforgex-primitives-chartcolor-chartforgex-core-chartfill-chartforgex-core-chartstrokestyle-chartforgex-core-chartmarkeroptions) parameter `stroke`
- Extension method [ChartMarkerOptions.OutlineStroke](/api/chartforgex-core-chartmarkeroptions/#extension-outlinestroke-chartforgex-core-chartmarkeroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartMarkerOptionsFluent.OutlineStroke](/api/chartforgex-core-chartmarkeroptionsfluent/#method-outlinestroke-chartforgex-core-chartmarkeroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartPieOptions.OuterOutline](/api/chartforgex-core-chartpieoptions/#extension-outeroutline-chartforgex-core-chartpieoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartPieOptions.SliceOutline](/api/chartforgex-core-chartpieoptions/#extension-sliceoutline-chartforgex-core-chartpieoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPieOptionsFluent.OuterOutline](/api/chartforgex-core-chartpieoptionsfluent/#method-outeroutline-chartforgex-core-chartpieoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPieOptionsFluent.SliceOutline](/api/chartforgex-core-chartpieoptionsfluent/#method-sliceoutline-chartforgex-core-chartpieoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPlotRegion.WithBorder](/api/chartforgex-core-chartplotregion/#method-withborder-chartforgex-core-chartstrokestyle) parameter `border`
- Extension method [ChartPolarLayoutOptions.AxisStroke](/api/chartforgex-core-chartpolarlayoutoptions/#extension-axisstroke-chartforgex-core-chartpolarlayoutoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartPolarLayoutOptions.GridStroke](/api/chartforgex-core-chartpolarlayoutoptions/#extension-gridstroke-chartforgex-core-chartpolarlayoutoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPolarLayoutOptionsFluent.AxisStroke](/api/chartforgex-core-chartpolarlayoutoptionsfluent/#method-axisstroke-chartforgex-core-chartpolarlayoutoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPolarLayoutOptionsFluent.GridStroke](/api/chartforgex-core-chartpolarlayoutoptionsfluent/#method-gridstroke-chartforgex-core-chartpolarlayoutoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartPolarOptions.OutlineStroke](/api/chartforgex-core-chartpolaroptions/#extension-outlinestroke-chartforgex-core-chartpolaroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPolarOptionsFluent.OutlineStroke](/api/chartforgex-core-chartpolaroptionsfluent/#method-outlinestroke-chartforgex-core-chartpolaroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartPyramidOptions.PartitionOutline](/api/chartforgex-core-chartpyramidoptions/#extension-partitionoutline-chartforgex-core-chartpyramidoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartPyramidOptionsFluent.PartitionOutline](/api/chartforgex-core-chartpyramidoptionsfluent/#method-partitionoutline-chartforgex-core-chartpyramidoptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartRadarOptions.OutlineStroke](/api/chartforgex-core-chartradaroptions/#extension-outlinestroke-chartforgex-core-chartradaroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartRadarOptionsFluent.OutlineStroke](/api/chartforgex-core-chartradaroptionsfluent/#method-outlinestroke-chartforgex-core-chartradaroptions-chartforgex-core-chartstrokestyle) parameter `value`
- Extension method [ChartSeries.StrokeStyle](/api/chartforgex-core-chartseries/#extension-strokestyle-chartforgex-core-chartseries-chartforgex-core-chartstrokestyle) parameter `value`
- Method [ChartSeries.StrokeStyleFrom](/api/chartforgex-core-chartseries/#method-strokestylefrom-double-chartforgex-core-chartstrokestyle) parameter `style`
- Method [ChartSeriesFluent.StrokeStyle](/api/chartforgex-core-chartseriesfluent/#method-strokestyle-chartforgex-core-chartseries-chartforgex-core-chartstrokestyle) parameter `value`
- Constructor [ChartStrokeSegment.ChartStrokeSegment](/api/chartforgex-core-chartstrokesegment/#constructor-ctor-double-chartforgex-core-chartstrokestyle) parameter `style`
- Extension method [SequenceArtifactPaint.LifelineStroke](/api/chartforgex-visualartifacts-sequenceartifactpaint/#extension-lifelinestroke-chartforgex-visualartifacts-sequenceartifactpaint-chartforgex-core-chartstrokestyle) parameter `value`
- Method [SequenceArtifactPaintFluent.LifelineStroke](/api/chartforgex-visualartifacts-sequenceartifactpaintfluent/#method-lifelinestroke-chartforgex-visualartifacts-sequenceartifactpaint-chartforgex-core-chartstrokestyle) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartStrokeStyle(ChartColor? color = null, double? width = null, double opacity = 1, IEnumerable<double>? dash = null)` [#](#constructor-ctor-nullable-chartforgex-primitives-chartcolor-nullable-system-double-double-collections-generic-ienumerable-system-double) 

[ChartStrokeStyle.cs:29](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L29)

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.

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public ChartColor? Color { get; }` [#](#property-color) 

[ChartStrokeStyle.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L13)

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

 `public double? Width { get; }` [#](#property-width) 

[ChartStrokeStyle.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L16)

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

 `public double Opacity { get; }` [#](#property-opacity) 

[ChartStrokeStyle.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L19)

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

 `public IReadOnlyList<double>? Dash { get; }` [#](#property-dash) 

[ChartStrokeStyle.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartStrokeStyle.cs#L22)

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

<!-- PowerForge markdown artifact sha256:63FD7C9ED15AD30775BC897A0ABB05626E43997757B8B2D5FF104F91618DD497 -->
