Graphics.LineDash
From Xojo Documentation
Method
Method
Graphics.LineDash(Assigns dashes() As Double)
New in 2020r2
Supported for all project types and targets.
New in 2020r2
Supported for all project types and targets.
Specifies the on/off dash pattern.
Notes
Passing an array with the values 1.0, 2.0 means a dash of 1 unit with a spacing of 2 units per dash.
Setting LineDash to Nil restores drawing to solid lines.
LineDash affects DrawLine, DrawOval, DrawPath, DrawPolygon, DrawRectangle, and DrawRoundRectangle.
LineCap and LineJoin will affect how the dashes are drawn.
Sample Code
Draw a diagonal line with 2 unit dashes and 3 unit gaps
g.PenSize = 5
g.LineDash = Array(2.0, 3.0)
g.DrawLine(0, 0, g.Width, g.Height)
g.LineDash = Array(2.0, 3.0)
g.DrawLine(0, 0, g.Width, g.Height)
See Also
Graphics.LineDashOffset property.