From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Graphics.LineCapTypes )
aGraphics.LineCap = newGraphics.LineCapTypesValue
Graphics.LineCapTypesValue = aGraphics.LineCap

New in 2020r2

Supported for all project types and targets.

The way in which the end of the line will be drawn.


Affects only lines drawn when using DrawPath, GraphicsPath and Object2D.

Sample Code

In the Paint event of a Canvas, set the line cap to round:

g.LineCap = Graphics.LineCapTypes.Round

See Also

LineCapTypes enumeration and LineJoin property.