SymbolStyle
public readonly struct SymbolStyleCombines 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:).
Fields
Section titled “Fields”
public readonly SymbolShape ShapeThe base glyph shape.
Returns
ChartGuru.SymbolShape
Stroked
Section titled “Stroked”public readonly bool StrokedTrue when the symbol should render as an outline rather than filled.
Returns
System.Boolean
StrokeWidth
Section titled “StrokeWidth”public readonly float StrokeWidthStroke width in pixels. Only consulted when ChartGuru.SymbolStyle.Stroked is true.
Returns
System.Single
Stroke
Section titled “Stroke”public readonly StrokeStyle? StrokeOptional explicit stroke style (line cap / dash). When non-null, takes
priority over ChartGuru.SymbolStyle.StrokeWidth.
Returns
System.Nullable{ChartGuru.StrokeStyle}
Constructors
Section titled “Constructors”
SymbolStyle(SymbolShape, bool, float, StrokeStyle?)
Section titled “SymbolStyle(SymbolShape, bool, float, StrokeStyle?)”public SymbolStyle(SymbolShape shape, bool stroked, float strokeWidth, StrokeStyle? stroke)Creates a filled or outlined symbol style, clamping the fallback outline width to a non-negative pixel value.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
stroked |
System.Boolean |
strokeWidth |
System.Single |
stroke |
System.Nullable{ChartGuru.StrokeStyle} |
Methods
Section titled “Methods”
Filled(SymbolShape)
Section titled “Filled(SymbolShape)”public static SymbolStyle Filled(SymbolShape shape)Filled symbol of the given shape.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
Returns
ChartGuru.SymbolStyle
StrokeBorder(SymbolShape, float)
Section titled “StrokeBorder(SymbolShape, float)”public static SymbolStyle StrokeBorder(SymbolShape shape, float lineWidth = 1)Stroked-border symbol with the given line width.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
lineWidth |
System.Single |
Returns
ChartGuru.SymbolStyle
StrokeBorder(SymbolShape, StrokeStyle)
Section titled “StrokeBorder(SymbolShape, StrokeStyle)”public static SymbolStyle StrokeBorder(SymbolShape shape, StrokeStyle style)Stroked-border symbol with the given ChartGuru.StrokeStyle.
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
style |
ChartGuru.StrokeStyle |
Returns
ChartGuru.SymbolStyle
Operators
Section titled “Operators”
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 |
|---|---|
shape |
ChartGuru.SymbolShape |
Returns
ChartGuru.SymbolStyle