API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.Rectangle property
Allows users to access the rectangle properties
Syntax:
Property Get Rectangle() As Rectangle
Remarks:
The Rectangle property returns a Rectangle object that represents the settings for a rectangle shape.
Examples:
The following VBA example sets the roundness of all rectangles on a page to 30%.
Sub Test()
Dim s As Shape
For Each s In ActivePage.Shapes
  If s.Type = cdrRectangleShape Then

 s.Rectangle.SetRoundness 30
  End If
Next s 
End Sub