DashStyle

Core::Diagram::DashStyle

Overview

Enumeration

A DashStyle describes a pattern for drawing a stroke. The pattern gives the lengths of those parts of a stroke that are actually drawn and of those parts that are not drawn.

(Fullscreen Diagram)

<<enumeration>>DashStyleDashDashShortDashDotLongDashLongDashShortDashLongDashShortDashShortDashShortDashSolid

Members

Literals

Name

Dash

DashShortDash

Dot

LongDash

LongDashShortDash

LongDashShortDashShortDash

ShortDash

Solid

Appearance

Each DashStyle is characterized by a sequence of an even number of double values. The first of these values gives the length of a visible part of a stroke, the second one the length of an invisible part. Optional further pairs of double values in the pattern are applied in the same way. The entire pattern is applied repeatedly until the end of a stroke.

The lengths in a DashStyle’s pattern are given in terms of the Stroke’s Width in mm, i.e., the dimensionless double values must be multiplied with the Width in order to get the actual lengths.

The following table gives heuristically proven patterns for the different DashStyles.

../../../_images/img5.svg