The Pen type exposes the following members.

Constructors

  Name Description
Public method Pen(Color)
Initializes a new instance of a Pen.
Public method Pen(Color, Double)
Initializes a new instance of a Pen.

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Operators

  Name Description
Public operator Static member Implicit Widening Implicit Implicit Implicit (Color to Pen)
Implicitly converts a Color to a Pen.

Properties

  Name Description
Public property Color
Gets or sets the pen color.
Public property DashOffset
Gets or sets the distance within the dash pattern where a dash begins. The default value is 0.
Public property DashPattern
Gets or sets the custom dash pattern of lines drawn with this pen.
Public property DashStyle
Gets or sets the style of dashed lines drawn with this pen.
Public property LineJoin
Gets or sets the style used to join lines drawn with this pen.
Public property StartCap
Gets or sets the cap style used to draw line ends with this pen.
Public property Width
Gets or sets the pen width.

See Also