Search
Rect Members
Constructors Properties Methods
 


Represents a rectangle.

The following tables list the members exposed by the Rect type.

 Public Constructors

  Name Description

Rect

Overloaded.  

 Public Properties

  Name Description

gridColumn

Gets or sets the index of the grid column this component is contained in. (Inherited from ComponentBase.)

gridRow

Gets or sets the index of the grid row this component is contained in. (Inherited from ComponentBase.)

height

Gets or sets the height of the rectangle.

horizontalAlignment

Gets or sets the component's horizontal alignment. (Inherited from ComponentBase.)

verticalAlignment

Gets or sets the component's vertical alignment. (Inherited from ComponentBase.)

visibility

Gets or sets the visibility of this component. (Inherited from ComponentBase.)

width

Gets or sets the width of the rectangle.

x

Gets or sets the x-coordinate of the upper-left corner of the rectangle.

y

Gets or sets the y-coordinate of the upper-left corner of the rectangle.

 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