Search
Pen Members
Constructors Properties Methods
 


Pen instances are used to draw the outline of geometric shapes.

The following tables list the members exposed by the Pen type.

 Public Constructors

  Name Description

Pen

Overloaded. Initialize a new instance of the Pen class.

 Public Properties

  Name Description

Brush

Gets or sets the Brush object that determines attributes of this pen.

Color

Gets or sets the color of this pen.

CompoundArray

Gets or sets an array values that specify a compound pen. A compound pen draws a compound line made up of parallel lines and spaces.

DashOffset

Gets or sets the distance from the start of a line to the beginning of a dash pattern.

DashPattern

Gets or sets an array of custom dashes and spaces.

DashStyle

Gets or sets the style used for dashed lines drawn with this pen.

LineJoin

Gets or sets the join style for the ends of two consecutive lines drawn with this pen.

MiterLimit

Gets or sets the limit of the thickness of the join on a mitered corner.

Width

Gets or sets the width of the pen.

 Public Methods

  Name Description

Clone

Creates an exact copy of this pen.

CreateGdiPen

Overloaded. Returns an instance of the System.Drawing.Pen class corresponding to the current pen.

GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the pen.

Serialize

Serializes the specified pen to a string.

ToString

Returns the string representation of this Pen object.

 See Also