Skip to content

PDFPatternPen

Namespace: O2S.Components.PDF4NET.Graphics

Defines a pen that uses a pattern based color for stroking a path.

public class PDFPatternPen : PDFPen

Inheritance ObjectPDFPenPDFPatternPen

Constructors

PDFPatternPen(PDFPatternColor, Double)

Initializes a new PDFPatternPen object.

public PDFPatternPen(PDFPatternColor color, double width)

Parameters

color PDFPatternColor
Pen color.

width Double
Pen width.


PDFPatternPen(PDFPatternPen)

Initializes a new PDFPen object with another pen.

public PDFPatternPen(PDFPatternPen pen)

Parameters

pen PDFPatternPen
Source pen.


Properties

Color

Gets or sets the pen color.

public PDFColor Color { get; set; }

Property Value

PDFColor
The pen color.


DashOffset

Gets or sets the dash offset.

public double DashOffset { get; set; }

Property Value

Double
The distance from the start of a line to the beginning of a dash pattern.


DashPattern

Gets or sets the dash pattern.

public Double[] DashPattern { get; set; }

Property Value

Double[]
An array of custom dashes and spaces.


LineCap

Gets or sets the line cap style.

public PDFLineCap LineCap { get; set; }

Property Value

PDFLineCap
The line cap style.


LineJoin

Gets or sets the line join style.

public PDFLineJoin LineJoin { get; set; }

Property Value

PDFLineJoin
The line join style.


UncoloredPatternPaintColor

Gets or sets the uncolored pattern paint color.

public PDFColor UncoloredPatternPaintColor { get; set; }

Property Value

PDFColor
The color used to paint an uncolored pattern.

Remarks

If the pattern colorspace associated with this pen's color contains an uncolored tiling pattern then the pattern will be painted using the color specified in this property.
Note: This property cannot be set to another pattern color.


Width

Gets or sets the pen width.

public double Width { get; set; }

Property Value

Double
The width of the pen.