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.Thickness Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the thickness of the stroke produced by this Pen.

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

public double Thickness { get; set; }

Property Value

Type: System.Double

The thickness of the stroke produced by this Pen. Default is 1.

Thickness is relative to the geometry of the shape associated with this pen. Negative values are treated as though they were positive.

Identifier field


Metadata properties set to true


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