Click or drag to resize
DigitalRuneFigureNodeStrokeDashPattern Property
Gets or sets the stroke dash pattern.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public Vector4F StrokeDashPattern { get; set; }

Property Value

Type: Vector4F
The dash pattern. The default value is (1, 0, 0, 0), which creates a solid line.
Remarks

The dash pattern is defined as a 4 component vector: (dash, gap, dash, gap). The length of a dash or a gap is relative to the StrokeThickness. For example, (5, 1, 1, 1) defines a dash pattern with a 5 unit dash, a 1 unit gap, a 1 unit dash followed by a 1 unit gap, then the pattern is repeated.

To render a solid line, set the gap components to 0, e.g. (1, 0, 0, 0).

The property DashInWorldSpace determines if the dash/gap size is in pixels or in world space units and whether perspective foreshortening is applied.

See Also