API Documentation > CorelDRAW > 2025-v26 > Rectangle > IVGRectangle
Rectangle.SetRadius method
Sets the corners radius
Syntax:
Sub SetRadius(ByVal Radius As Double)
Parameters:
Name Type Description
Radius
Double
Remarks:
The SetRadius method sets the same radius value for all corners in a rectangle. This value is measured in document units.
Examples:
The following VBA example sets the radius of all corners in the active rectangle to 0.3".
Sub Test()
ActiveShape.Rectangle.SetRadius 0.3 
End Sub