API Documentation > CorelDRAW > 2025-v26 > Rect > IVGRect
Rect.SetRect method
Sets the rectangle position and size
Syntax:
Sub SetRect(ByVal x As Double, ByVal y As Double, ByVal Width As Double, ByVal Height As Double)
Parameters:
Name Type Description
x
Double
y
Double
Width
Double
Height
Double
Remarks:
The SetRect method sets the position and size of a bounding box.