RoundRectShape.Segments

From Xojo Documentation

Property (As Integer )
aRoundRectShape.Segments = newIntegerValue
or
IntegerValue = aRoundRectShape.Segments

Supported for all project types and targets.

The number of polygon sides to use when approximation is needed. Zero means it’s up to the renderer.