Table of Contents

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

StartCap LineCap
EndCap LineCap
Join LineJoin
Dashes float[]
DashOffset float

Properties

DashOffset

public float DashOffset { get; init; }

Property Value

float

Dashed

Dashed line (dash and gap lengths are in stroke-width units).

public static StrokeStyle Dashed { get; }

Property Value

StrokeStyle

Dashes

public float[]? Dashes { get; init; }

Property Value

float[]

Dotted

Dotted line.

public static StrokeStyle Dotted { get; }

Property Value

StrokeStyle

EndCap

public LineCap EndCap { get; init; }

Property Value

LineCap

Join

public LineJoin Join { get; init; }

Property Value

LineJoin

Round

Round caps and joins (arcs, knob pointers, curves).

public static StrokeStyle Round { get; }

Property Value

StrokeStyle

Solid

Plain stroke with flat caps.

public static StrokeStyle Solid { get; }

Property Value

StrokeStyle

StartCap

public LineCap StartCap { get; init; }

Property Value

LineCap

Methods

Equals(StrokeStyle?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(StrokeStyle? other)

Parameters

other StrokeStyle

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.