Represents a geometric shape with four edges and four right angles. You can set and return its position and dimensions with its Top, Left, Bottom and Right properties.
The following tables list the members exposed by Rectangle.
|Bottom||Gets or sets the Y coordinate of the lower-right corner of the rectangle.|
|Center||Returns the center point of the rectangle.|
|Height||Returns the vertical dimension of the rectangle.|
|Left||Gets or sets the X coordinate of the upper-left corner of the rectangle.|
|Right||Gets or sets the X coordinate of the lower-right corner of the rectangle.|
|Top||Gets or sets the Y coordinate of the upper-left corner of the rectangle.|
|Width||Returns the horizontal dimension of the rectangle.|
|Deflate||Deflates the rectangle by moving its sides toward its center. To do this, Deflate adds units to the left and bottom and subtracts units from the right and top.|
|Inflate||Inflates the rectangle by moving its sides away from its center. To do this, Inflate subtracts units from the left and bottom and adds units to the right and top.|
|Intersects||Returns a value that indicates whether a rectangle intersects another rectangle.|
|IsPointIn||Returns a value that indicates whether a
|Offset||Moves the rectangle object by the specified offset horizontally and vertically.|
|Union||Changes the Rectangle object to a Rectangle object that represents the geometric union of itself and a Point object.|
|UnionRectangle||Changes the Rectangle to a Rectangle that represents the geometric union of itself and the specified Rectangle object.|