API Documentation > CorelDRAW > 2025-v26 > Rectangle > IVGRectangle
Rectangle.SetRoundness method
Sets the roundness of the corners
Syntax:
Sub SetRoundness(ByVal Roundness As Long)
Parameters:
Name Type Description
Roundness
Long
Remarks:
The SetRoundness method sets the same roundness for all corners in a rectangle. The roundness value ranges from 0 (a cusp corner) to 100 (the maximum corner radius, which is half the length of the shortest side).
Examples:
The following VBA example sets the roundness for all corners in the active rectangle to 50%.
Sub Test()
ActiveShape.Rectangle.SetRoundness 50 
End Sub