DashStyles Class

 
System_CAPS_noteNote

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

Implements a set of predefined DashStyle objects.

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

System.Object
  System.Windows.Media.DashStyles

[<AbstractClass>]
[<Sealed>]
type DashStyles = class end

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticDash

Gets a DashStyle with a Dashes property equal to 2,2.

System_CAPS_pubpropertySystem_CAPS_staticDashDot

Gets a DashStyle with a Dashes property equal to 2,2,0,2.

System_CAPS_pubpropertySystem_CAPS_staticDashDotDot

Gets a DashStyle with a Dashes property equal to 2,2,0,2,0,2.

System_CAPS_pubpropertySystem_CAPS_staticDot

Gets a DashStyle with a Dashes property equal to 0,2.

System_CAPS_pubpropertySystem_CAPS_staticSolid

Gets a DashStyle with an empty Dashes property.

The following illustration shows examples of different dash styles applied to an underline.

Shows several different dash styles.

You cannot declare this managed class in XAML, but you can use its static properties to assign values in XAML.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: