API Documentation > CorelDRAW > 2025-v26
ScreenRect class
ScreenRect class
Syntax:
Class ScreenRect
Remarks:
The ScreenRect class repesents the properties of a rectangle on the screen.
Properties:
Name Description
Bottom Gets or sets the position of the bottom edge of the rectange
CenterX Gets or sets the horizontal position of the center the rectange
CenterY Gets or sets the vertical position of the center the rectange
Height Gets or sets the height the rectange
Left Gets or sets the position of the left edge of the rectange
ReadOnly Returns True if this is a read-only rectangle. Any attempt to update the size or position of the rectangle will fail
Right Gets or sets the position of the right edge of the rectange
Top Gets or sets the position of the top edge of the rectange
Width Gets or sets the width the rectange
Methods:
Name Description
CopyAssign Copies the position and size of the rectangle from source
GetCopy Returns a copy of the rectangle, detached from the original source
Inflate Inflates the rectangle by given amount in each direction
Intersect Intersects the two rectangle
IsEmpty Checks if the rectangle is empty
IsPointInside Checks if the specified point is inside the rectangle
Move Moves the rectangle to the given position
Offset Moves the rectangle by the given offset
Resize Resizes the rectangle
SetPosition Sets the rectangle position and size
Union Combines the two rectangle and returns the resulting rectangle