Table of Contents

Class XPen

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Defines an object used to draw lines and curves.

public sealed class XPen
Inheritance
XPen
Inherited Members

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

Properties

Color

Gets or sets the color.

public XColor Color { get; set; }

Property Value

XColor

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[]

DashStyle

Gets or sets the dash style.

public XDashStyle DashStyle { get; set; }

Property Value

XDashStyle

LineCap

Gets or sets the line cap.

public XLineCap LineCap { get; set; }

Property Value

XLineCap

LineJoin

Gets or sets the line join.

public XLineJoin LineJoin { get; set; }

Property Value

XLineJoin

MiterLimit

Gets or sets the miter limit.

public double MiterLimit { 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

bool

Width

Gets or sets the width.

public double Width { get; set; }

Property Value

double

Methods

Clone()

Clones this instance.

public XPen Clone()

Returns

XPen