Namespace: PdfSharp.Drawing
Defines an object used to draw lines and curves.
public sealed class XPen
Gets or sets the color.
public XColor Color { get; set; }
Gets or sets the width.
public double Width { get; set; }
Gets or sets the line join.
public XLineJoin LineJoin { get; set; }
Gets or sets the line cap.
public XLineCap LineCap { get; set; }
Gets or sets the miter limit.
public double MiterLimit { get; set; }
Gets or sets the dash style.
public XDashStyle DashStyle { get; set; }
Gets or sets the dash offset.
public double DashOffset { get; set; }
Gets or sets the dash pattern.
public Double[] DashPattern { get; set; }
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; }
Initializes a new instance of the XPen class.
public XPen(XColor color)
color
XColor
Initializes a new instance of the XPen class.
public XPen(XColor color, double width)
color
XColor
width
Double
Initializes a new instance of the XPen class.
public XPen(XPen pen)
pen
XPen
Clones this instance.
public XPen Clone()