Rectangle |
The RectangleF type exposes the following members.
| Name | Description | |
|---|---|---|
| Bottom | Gets the y-coordinate that is the sum of System.Drawing.RectangleF.Y and System.Drawing.RectangleF.Height of this System.Drawing.RectangleF structure. | |
| Height | Gets or sets the height of this System.Drawing.RectangleF structure. | |
| IsEmpty | Tests whether the System.Drawing.RectangleF.Width or System.Drawing.RectangleF.Height property of this System.Drawing.RectangleF has a value of zero. | |
| Left | Gets the x-coordinate of the left edge of this System.Drawing.RectangleF structure. | |
| Location | Gets or sets the coordinates of the upper-left corner of this System.Drawing.RectangleF structure. | |
| Right | Gets the x-coordinate that is the sum of System.Drawing.RectangleF.X and System.Drawing.RectangleF.Width of this System.Drawing.RectangleF structure. | |
| Size | Gets or sets the size of this System.Drawing.RectangleF. | |
| Top | Gets the y-coordinate of the top edge of this System.Drawing.RectangleF structure. | |
| Width | Gets or sets the width of this System.Drawing.RectangleF structure. | |
| X | Gets or sets the x-coordinate of the upper-left corner of this System.Drawing.RectangleF structure. | |
| Y | Gets or sets the y-coordinate of the upper-left corner of this System.Drawing.RectangleF structure. |
| Name | Description | |
|---|---|---|
| Contains(PointF) | Determines if the specified point is contained within this System.Drawing.RectangleF structure. | |
| Contains(PointF) | Determines if the specified point is contained within this System.Drawing.RectangleF structure. | |
| Contains(RectangleF) | Determines if the rectangular region represented by rect is entirely contained within this System.Drawing.RectangleF structure. | |
| Contains(Single, Single) | Determines if the specified point is contained within this System.Drawing.RectangleF structure. | |
| Equals |
Tests whether obj is a System.Drawing.RectangleF with the same location and
size of this System.Drawing.RectangleF.
(Overrides ObjectEquals(Object)) | |
| FromLTRB | Creates a System.Drawing.RectangleF structure with upper-left corner and lower-right corner at the specified locations. | |
| GetHashCode |
Gets the hash code for this System.Drawing.RectangleF structure. For information about the use of hash codes, see Object.GetHashCode.
(Overrides ObjectGetHashCode) | |
| Inflate(SizeF) | Inflates this System.Drawing.RectangleF by the specified amount. | |
| Inflate(SizeF) | Inflates this System.Drawing.RectangleF by the specified amount. | |
| Inflate(Single, Single) | Inflates this System.Drawing.RectangleF structure by the specified amount. | |
| Inflate(RectangleF, Single, Single) | Creates and returns an inflated copy of the specified System.Drawing.RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified. | |
| Intersect(RectangleF) | Replaces this System.Drawing.RectangleF structure with the intersection of itself and the specified System.Drawing.RectangleF structure. | |
| Intersect(RectangleF, RectangleF) | Returns a System.Drawing.RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty System.Drawing.RectangleF is returned. | |
| IntersectsWith | Determines if this rectangle intersects with rect. | |
| Offset(PointF) | Adjusts the location of this rectangle by the specified amount. | |
| Offset(PointF) | Adjusts the location of this rectangle by the specified amount. | |
| Offset(Single, Single) | Adjusts the location of this rectangle by the specified amount. | |
| ToString |
Converts the Location and System.Drawing.Size of this System.Drawing.RectangleF
to a human-readable string.
(Overrides ObjectToString) | |
| Union | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
| Name | Description | |
|---|---|---|
| Equality(RectangleF, RectangleF) | Tests whether two System.Drawing.RectangleF structures have equal location and size. | |
| (Rectangle to RectangleF) | Converts the specified System.Drawing.Rectangle structure to a System.Drawing.RectangleF structure. | |
| (RectangleF to Rectangle) | Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values. | |
| (RectangleF to RectangleF) | Converts the specified RectangleF structure to a RectangleF structure. | |
| (RectangleF to RectangleF) | Copies the specified System.Drawing.RectangleF structure to a System.Drawing.RectangleF structure. | |
| Inequality(RectangleF, RectangleF) | Tests whether two System.Drawing.RectangleF structures differ in location or size. |