Pen Constructor (Color)

 

Initializes a new instance of the Pen class with the specified color.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public Pen(
	Color color
)

Parameters

color
Type: System.Drawing.Color

A Color structure that indicates the color of this Pen.

The Color property is set to the color specified by the color parameter. The Width property is set to 1 (the default).

.NET Framework
Available since 1.1
Return to top
Show: