PDFPatternPen¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines a pen that uses a pattern based color for stroking a path.
Inheritance Object → PDFPen → PDFPatternPen
Constructors¶
PDFPatternPen(PDFPatternColor, Double)¶
Initializes a new PDFPatternPen object.
Parameters
color PDFPatternColor
Pen color.
width Double
Pen width.
PDFPatternPen(PDFPatternPen)¶
Initializes a new PDFPen object with another pen.
Parameters
pen PDFPatternPen
Source pen.
Properties¶
Color¶
Gets or sets the pen color.
Property Value
PDFColor
The pen color.
DashOffset¶
Gets or sets the dash offset.
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.
Property Value
Double[]
An array of custom dashes and spaces.
LineCap¶
Gets or sets the line cap style.
Property Value
PDFLineCap
The line cap style.
LineJoin¶
Gets or sets the line join style.
Property Value
PDFLineJoin
The line join style.
UncoloredPatternPaintColor¶
Gets or sets the uncolored pattern paint color.
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.
Property Value
Double
The width of the pen.