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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(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