다음을 통해 공유


Shape.StrokeThickness Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the width of the Shape stroke outline.

Namespace:  System.Windows.Shapes
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property StrokeThickness As Double
public double StrokeThickness { get; set; }
<object StrokeThickness="double"/>

Property Value

Type: System.Double
The width of the Shape outline, in pixels.
The default value is 0.

Remarks

Dependency property identifier field: StrokeThicknessProperty

StrokeThickness also applies to the various stroke decorations if they are defined, such as StrokeStartLineCap, or the StrokeDashArray dash pattern.

Generally you should use integral numeric values for this property. Nonintegral values can cause subpixel rendering, and may alter the apparent color of the stroke.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.