다음을 통해 공유


Shape.StrokeDashOffset Property

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

Gets or sets a Double that specifies the distance within the dash pattern where a dash begins.

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

Syntax

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

Property Value

Type: System.Double
A Double that represents the distance within the dash pattern where a dash begins. The default value is 0.

Remarks

Dependency property identifier field: StrokeDashOffsetProperty

The dash pattern is also influenced by StrokeDashArray.

Generally you should use integral numeric values for this property. Non-integral values can cause sub-pixel rendering, and may alter the apparent color of the stroke. See Layout Rounding.

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.