Struct LineStyle
- Namespace
- Rustaveli.Pdf
- Assembly
- Rustaveli.Pdf.dll
How a path is stroked: its weight, how its ends and corners are finished, and any dashes.
public readonly record struct LineStyle : IEquatable<LineStyle>
- Implements
- Inherited Members
Constructors
LineStyle(float, LineCap, LineJoin, float, IReadOnlyList<float>?, float)
How a path is stroked: its weight, how its ends and corners are finished, and any dashes.
public LineStyle(float Weight, LineCap Cap = LineCap.Butt, LineJoin Join = LineJoin.Miter, float MiterLimit = 4, IReadOnlyList<float>? Dashes = null, float DashOffset = 0)
Parameters
WeightfloatThe stroke's width, in points.
CapLineCapHow open ends are finished.
JoinLineJoinHow corners are turned.
MiterLimitfloatHow long a mitered point may grow, as a multiple of the weight, before it is cut square.
DashesIReadOnlyList<float>Lengths of dash and gap, alternating and starting with a dash; none for a solid stroke.
DashOffsetfloatHow far into the dash pattern the stroke starts.
Properties
Cap
How open ends are finished.
public LineCap Cap { get; init; }
Property Value
DashOffset
How far into the dash pattern the stroke starts.
public float DashOffset { get; init; }
Property Value
Dashes
Lengths of dash and gap, alternating and starting with a dash; none for a solid stroke.
public IReadOnlyList<float>? Dashes { get; init; }
Property Value
Join
How corners are turned.
public LineJoin Join { get; init; }
Property Value
MiterLimit
How long a mitered point may grow, as a multiple of the weight, before it is cut square.
public float MiterLimit { get; init; }
Property Value
Weight
The stroke's width, in points.
public float Weight { get; init; }