CanvasDashStyle Enumeration |
Describes the sequence of dashes, dots, and gaps in a stroke style.
Namespace:
Microsoft.Graphics.Canvas.Geometry
Assembly:
Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax public enum CanvasDashStyle
Members
| Member name | Value | Description |
---|
| Solid | 0 | A solid line with no breaks. |
| Dash | 1 | A dash followed by a gap of equal length.
The dash and the gap are each twice as long as the stroke thickness.
The equivalent custom dash style is { 2, 2 }. |
| Dot | 2 | A dot followed by a longer gap.
The equivalent custom dash style is { 0, 2 }. |
| DashDot | 3 | A dash, followed by a gap, followed by a dot, followed by another gap.
The equivalent custom dash style is { 2, 2, 0, 2 }. |
| DashDotDot | 4 | A dash, followed by a gap, followed by a dot, followed by another gap, followed by another dot, followed by another gap.
The equivalent custom dash style is { 2, 2, 0, 2, 0, 2 }. |
Remarks
If a dash style contains a dash which is zero-length, that dash will only be visible with non-Flat dash caps.
See Also