Namespace TallComponents.PDF.Layout.Pens
Class Pen
A pen defines the characteristics of a line such as color and pattern (solid, dashed, etc.).
Lines, curves and borders are drawn using a pen. A pen defines how line ends are connected (
) and how open ends are drawn (
).
Syntax
public class Pen
: Object
Constructors
Pen()
Create a solid black pen that has a width of 1 user space unit.
Pen(Color)
Create a solid pen with given color that has a width of 1 user space unit.
Pen(Color,Double)
Create a solid pen with given color and fractional width.
Pen(Color,Double,DashPattern)
Create a solid pen with given color, fractional width and pattern.
Properties
LineCapStyle CapStyle
How caps (end-points) are drawn.
Color Color
Color of this pen.
LineJoinStyle JoinStyle
How joints are drawn.
Double Opacity
The opacity (0...255) which must be used for this shape. Default is 255 (fully opaque).
DashPattern Pattern
Pattern of this pen.
Double Width
Width of this pen.