From Xojo Documentation

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.