Windows apps
Collapse the table of content
Expand the table of content
Information
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.

DashStyles Class

 

Implements a set of predefined DashStyle objects.

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

System.Object
  System.Windows.Media.DashStyles

public static class DashStyles

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:
© 2016 Microsoft