• Products
  • Pricing
  • Documentation
  • Support
Login
Your cart is empty. See pricing.
My order
Total:
Order
  • Home
  • Products
  • Pricing
  • Documentation
  • Support
Login
LinkedIn
Twitter
  • Guide
  • API reference
  • Code samples
  • Changelog
  • TallComponents
  • TallComponents.Licensing
  • TallComponents.PDF.Layout
  • TallComponents.PDF.Layout.Actions
  • TallComponents.PDF.Layout.Brushes
  • TallComponents.PDF.Layout.Colors
  • TallComponents.PDF.Layout.Css
  • TallComponents.PDF.Layout.Fonts
  • TallComponents.PDF.Layout.JavaScript
  • TallComponents.PDF.Layout.Metadata
  • TallComponents.PDF.Layout.Navigation
  • TallComponents.PDF.Layout.Paragraphs
  • TallComponents.PDF.Layout.Pens
  • TallComponents.PDF.Layout.ResourceLoader
  • TallComponents.PDF.Layout.Security
  • TallComponents.PDF.Layout.Shapes
  • TallComponents.PDF.Layout.Shapes.Annotations
  • TallComponents.PDF.Layout.Shapes.Barcodes
  • TallComponents.PDF.Layout.Shapes.Fields
  • TallComponents.PDF.Layout.Xml

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.

Methods

Pen Clone()
Clones a Pen.
Boolean Equals(Object)
Compare two Pens.
Int32 GetHashCode()
Returns base.GetHashCode().
Our products
PDFKit.NET 5.0
Create and manipulate PDF documents
TallPDF.NET 5.0
Generate PDF on the fly
PDFRasterizer.NET 4.0
Render PDF pages cross-platform
Support resources
  • Code samples
  • Submit issue
  • Contact
  • Licensing Model
Legal
  • EULA
  • Privacy
LinkedIn
Twitter
© 2001-2025 TallComponents BV. All rights reserved.