API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateRectangleRect method
Creates a rectangle shape by using the rectangular area specified
Syntax:
Function CreateRectangleRect(ByVal Rect As Rect, Optional ByVal RadiusUL As Double = 0, Optional ByVal RadiusUR As Double = 0, Optional ByVal RadiusLR As Double = 0, Optional ByVal RadiusLL As Double = 0) As Shape
Parameters:
Name Type Description
Rect
RadiusUL
Double
Specifies the actual corner radius measurement of the upper-left corner.
RadiusUR
Double
Specifies the actual corner radius measurement of the upper-right corner.
RadiusLR
Double
Specifies the actual corner radius measurement of the lower-right corner.
RadiusLL
Double
Specifies the actual corner radius measurement of the lower-left corner.
Remarks:
The CreateRectangleRect method creates a rectangle shape, at a specified location on a layer, by using the specified rectangular area.