Skip to content

SymbolStyle

StructChartGuruChartGuru
[Serializable]
public readonly struct SymbolStyle

Combines a ChartGuru.SymbolShape with optional stroke-border styling. Constructed via ChartGuru.SymbolShapeExtensions.StrokeBorder(ChartGuru.SymbolShape%2cSystem.Single) or implicit conversion from ChartGuru.SymbolShape for filled symbols. Swift Charts equivalent: BasicChartSymbolShape + .StrokeBorder(lineWidth:).

public readonly SymbolShape Shape

The base glyph shape.

Returns

ChartGuru.SymbolShape — No return description is available.

public readonly bool Stroked

True when the symbol should render as an outline rather than filled.

Returns

System.Boolean — No return description is available.

public readonly float StrokeWidth

Stroke width in pixels. Only consulted when ChartGuru.SymbolStyle.Stroked is true.

Returns

System.Single — No return description is available.

public readonly StrokeStyle? Stroke

Optional explicit stroke style (line cap / dash). When non-null, takes priority over ChartGuru.SymbolStyle.StrokeWidth.

Returns

System.Nullable{ChartGuru.StrokeStyle} — No return description is available.

SymbolStyle(SymbolShape, bool, float, StrokeStyle?)

Section titled “SymbolStyle(SymbolShape, bool, float, StrokeStyle?)”
public SymbolStyle(SymbolShape shape, bool stroked, float strokeWidth, StrokeStyle? stroke)

No description is available for this member.

Parameters

Name Type Description
shape ChartGuru.SymbolShape
stroked System.Boolean
strokeWidth System.Single
stroke System.Nullable{ChartGuru.StrokeStyle}

public static SymbolStyle Filled(SymbolShape shape)

Filled symbol of the given shape.

Parameters

Name Type Description
shape ChartGuru.SymbolShape

Returns

ChartGuru.SymbolStyle — No return description is available.

public static SymbolStyle StrokeBorder(SymbolShape shape, float lineWidth = 1)

Stroked-border symbol with the given line width.

Parameters

Name Type Description
shape ChartGuru.SymbolShape
lineWidth System.Single

Returns

ChartGuru.SymbolStyle — No return description is available.

public static SymbolStyle StrokeBorder(SymbolShape shape, StrokeStyle style)

Stroked-border symbol with the given ChartGuru.StrokeStyle.

Parameters

Name Type Description
shape ChartGuru.SymbolShape
style ChartGuru.StrokeStyle

Returns

ChartGuru.SymbolStyle — No return description is available.

implicit operator SymbolStyle(SymbolShape)

Section titled “implicit operator SymbolStyle(SymbolShape)”
public static implicit operator SymbolStyle(SymbolShape shape)

Implicit conversion from ChartGuru.SymbolShape to a filled ChartGuru.SymbolStyle.

Parameters

Name Type Description
shape ChartGuru.SymbolShape

Returns

ChartGuru.SymbolStyle — No return description is available.