Partager via


Shape.StrokeDashCap Property

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

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn.

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

Syntax

'Declaration
Public Property StrokeDashCap As PenLineCap
public PenLineCap StrokeDashCap { get; set; }
<object StrokeDashCap="penLineCapMemberName"/>

Property Value

Type: System.Windows.Media.PenLineCap
One of the enumeration values for PenLineCap. The default is Flat.

Remarks

Dependency property identifier field: StrokeDashCapProperty

This setting applies to both ends of each dash.

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.