API Documentation > CorelDRAW > 2025-v26 > Application > IVGApplication
Application.CreateRect method
Creates an object representing a rectangular area in a document
Syntax:
Function CreateRect(Optional ByVal x As Double = 0, Optional ByVal y As Double = 0, Optional ByVal Width As Double = 0, Optional ByVal Height As Double = 0) As Rect
Parameters:
Name Type Description
x
Double
Specifies the horizontal position of the rectangular area.
y
Double
Specifies the vertical position of the rectangular area.
Width
Double
Specifies the width of the rectangular area.
Height
Double
Specifies the height of the rectangular area.
Remarks:
The CreateRect method creates an object represeneting a rectangular area in a document.