Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Pen Constructor (Brush, Double)


Initializes a new instance of the Pen class with the specified Brush and thickness.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public Pen(
	Brush brush,
	double thickness


Type: System.Windows.Media.Brush

The Brush for this Pen.

Type: System.Double

The thickness of the Pen.

Thickness is relative to the geometry of the shape associated with this pen.

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft