Table of Contents

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

Weight float

The stroke's width, in points.

Cap LineCap

How open ends are finished.

Join LineJoin

How corners are turned.

MiterLimit float

How long a mitered point may grow, as a multiple of the weight, before it is cut square.

Dashes IReadOnlyList<float>

Lengths of dash and gap, alternating and starting with a dash; none for a solid stroke.

DashOffset float

How far into the dash pattern the stroke starts.

Properties

Cap

How open ends are finished.

public LineCap Cap { get; init; }

Property Value

LineCap

DashOffset

How far into the dash pattern the stroke starts.

public float DashOffset { get; init; }

Property Value

float

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

IReadOnlyList<float>

Join

How corners are turned.

public LineJoin Join { get; init; }

Property Value

LineJoin

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

float

Weight

The stroke's width, in points.

public float Weight { get; init; }

Property Value

float