PDFsharp-net6

XPen

Namespace: PdfSharp.Drawing

Defines an object used to draw lines and curves.

public sealed class XPen

Inheritance ObjectXPen

Properties

Color

Gets or sets the color.

public XColor Color { get; set; }

Property Value

XColor

Width

Gets or sets the width.

public double Width { get; set; }

Property Value

Double

LineJoin

Gets or sets the line join.

public XLineJoin LineJoin { get; set; }

Property Value

XLineJoin

LineCap

Gets or sets the line cap.

public XLineCap LineCap { get; set; }

Property Value

XLineCap

MiterLimit

Gets or sets the miter limit.

public double MiterLimit { get; set; }

Property Value

Double

DashStyle

Gets or sets the dash style.

public XDashStyle DashStyle { get; set; }

Property Value

XDashStyle

DashOffset

Gets or sets the dash offset.

public double DashOffset { get; set; }

Property Value

Double

DashPattern

Gets or sets the dash pattern.

public Double[] DashPattern { get; set; }

Property Value

Double[]

Overprint

Gets or sets a value indicating whether the pen enables overprint when used in a PDF document. Experimental, takes effect only on CMYK color mode.

public bool Overprint { get; set; }

Property Value

Boolean

Constructors

XPen(XColor)

Initializes a new instance of the XPen class.

public XPen(XColor color)

Parameters

color XColor

XPen(XColor, Double)

Initializes a new instance of the XPen class.

public XPen(XColor color, double width)

Parameters

color XColor

width Double

XPen(XPen)

Initializes a new instance of the XPen class.

public XPen(XPen pen)

Parameters

pen XPen

Methods

Clone()

Clones this instance.

public XPen Clone()

Returns

XPen