From Xojo Documentation

Revision as of 14:16, 20 November 2020 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Double )
aGraphics.LineDashOffset = newDoubleValue
DoubleValue = aGraphics.LineDashOffset

New in 2020r2

Supported for all project types and targets.

Specifies the starting point of the dash.


An offset of 0.5 would mean the first dash would start at half size.

Sample Code

Draws a line with 2 unit dashes and 2 unit gaps with the first dash offset by 1.

g.LineDash = Array(2.0, 3.0)
g.LineDashOffset = 1.0
g.DrawLine(0, 0, g.Width, g.Height)

See Also

LineDash method.