Rect class
Syntax:
Class Rect
Remarks:
The Rect class represents the rectangular bounding box around an object.
Properties:
Name Description
Bottom Returns the coordinate of the bottom edge of the rectangular area
CenterX Returns the horizontal coordinate of the center of the rectangular area
CenterY Returns the vertical coordinate of the center of the rectangular area
Height Gets or sets the height of the rectangle
IsEmpty Determines if the rectangle is empty
Left Returns the coordinate of the left edge of the rectangular area
Right Returns the coordinate of the right edge of the rectangular area
Top Returns the coordinate of the top edge of the rectangular area
Width Gets or sets the width of the rectangle
x Gets or sets the position of the left edge of the rectangle
y Gets or sets the position of the bottom edge of the rectangle
Methods:
Name Description
ChangeContext Translates the rectangle coordinates from the context of the source document into that of the destination
Clear Makes the rectangle empty
CopyAssign Copies the position and size of the rectangle
GetCopy Gets a copy of rectangle object
GetRect Gets the rectangle position and size
Inflate Increases the size of the rectangle
Intersect Intersects the two rectangles and returns the overlapping region
IsPointInside Checks if the specified point is inside the rectangle
Offset Moves the rectangle
SetRect Sets the rectangle position and size
Union Creates a rectangle that encloses the two rectangles