Search
Rect Methods
 


 Public Methods

  Name Description

bottom

Gets the y-coordinate that is the sum of the y and height values of this Rect object.

bottomLeft

Gets the bottom-left edge of this Rect object.

bottomRight

Gets the bottom-right edge of this Rect object.

center

Gets the center of this Rect object.

clone

Creates a Rect object identical to the current object.

contains

Determines if the rectangular region represented by rect is entirely contained within this Rect object.

containsPoint

Determines if the specified point is contained within this Rect object.

equals

Specifies whether this Rect contains the same coordinates as the specified rectangle.

fromLTRB

Creates a Rect object with the specified edge locations.

intersect

Returns a Rect object representing the intersection of the current rectangle with the specified rectangle.

intersectsWith

Checks if this Rect intersects with the specified rect.

isEmpty

Gets a value indicating whether this Rect is empty.

left

Gets the x-coordinate of the left edge of this Rect object.

right

Gets the x-coordinate that is the sum of x and width values of this Rect.

setCenter

Sets the center of this Rect object.

setLocation

Sets the top-left edge of this Rect object.

top

Gets the y-coordinate of the top edge of this Rect object.

topLeft

Gets the top-left edge of this Rect.

topMiddle

Gets the top-middle of this Rect object.

topRight

Gets the top-right edge of this Rect object.

union

Returns a Rect object representing the union of the current rectangle with the specified rectangle.

 See Also