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: