Class StrokeStyle
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Stroke options (caps, joins, dashes). Instances are cached by value by the renderer.
public sealed record StrokeStyle : IEquatable<StrokeStyle>
- Inheritance
-
StrokeStyle
- Implements
- Inherited Members
Constructors
StrokeStyle(LineCap, LineCap, LineJoin, float[]?, float)
Stroke options (caps, joins, dashes). Instances are cached by value by the renderer.
public StrokeStyle(LineCap StartCap = LineCap.Flat, LineCap EndCap = LineCap.Flat, LineJoin Join = LineJoin.Miter, float[]? Dashes = null, float DashOffset = 0)
Parameters
Properties
DashOffset
public float DashOffset { get; init; }
Property Value
Dashed
Dashed line (dash and gap lengths are in stroke-width units).
public static StrokeStyle Dashed { get; }
Property Value
Dashes
public float[]? Dashes { get; init; }
Property Value
- float[]
Dotted
Dotted line.
public static StrokeStyle Dotted { get; }
Property Value
EndCap
public LineCap EndCap { get; init; }
Property Value
Join
public LineJoin Join { get; init; }
Property Value
Round
Round caps and joins (arcs, knob pointers, curves).
public static StrokeStyle Round { get; }
Property Value
Solid
Plain stroke with flat caps.
public static StrokeStyle Solid { get; }
Property Value
StartCap
public LineCap StartCap { get; init; }
Property Value
Methods
Equals(StrokeStyle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(StrokeStyle? other)
Parameters
otherStrokeStyleAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.