Windows apps
Collapse the table of content
Expand the table of content
Information
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
)

Parameters

brush
Type: System.Windows.Media.Brush

The Brush for this Pen.

thickness
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
Show:
© 2017 Microsoft