RectangleF Class
Stores the location and size of a rectangular region with floating point parameters. This class cannot be inherited.
Definition
| public sealed class RectangleF: Object |
Members Table
The following table lists the members exposed by the RectangleF object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Contains | Overloaded. Determines if the specified point or rectangular region is contained within this RectangleF object. |
| Equals | Overloaded. Compares two objects to determine if they are equal. |
| FromLTRB | Creates a RectangleF object with upper-left corner and lower-right corner at the specified locations. |
| GetHashCode | Overriden. Gets the hash code for this RectangleF object. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Inflate | Overloaded. Inflates a rectangular region by the specified amount. |
| Intersect | Overloaded. Returns a RectangleF object that represents the intersection of two rectangles. If there is no intersection, null is returned. |
| IntersectsWith | Determines if this rectangle intersects with another RectangleF. |
| Offset | Overloaded. Adjusts the location of this RectangleF by a specified amount. |
| RectangleF | Overloaded. Initializes a new instance of RectangleF. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Overriden. Converts the Location and Size of this RectangleF to a human-readable string. |
| Union | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
Properties
| Property | Description |
|---|
| Bottom | Gets the vertical coordinate of the bottom edge of this RectangleF object. |
| Empty | Represents an instance of the RectangleF class with its members uninitialized. |
| Height | Gets or sets the height of this RectangleF object. |
| IsEmpty | Gets a value indicating whether all numeric properties of this RectangleF have values of zero. |
| Left | Gets the horizontal coordinate of the left edge of this RectangleF object. |
| Location | Gets or sets the coordinates of the upper-left corner of this RectangleF object. |
| Right | Gets the horizontal coordinate of the right edge of this RectangleF object. |
| Size | Gets or sets the size of this RectangleF. |
| Top | Gets the vertical coordinate of the top edge of this RectangleF object. |
| Width | Gets or sets the width of this RectangleF object. |
| X | Gets or sets the horizontal coordinate of the upper-left corner of this RectangleF object. |
| Y | Gets or sets the vertical coordinate of the upper-left corner of this RectangleF object. |
Operators
| Operator | Description |
|---|
| operator != | Tests whether two RectangleF objects differ in location or size. |
| operator == | Tests whether two RectangleF objects have equal location and size. |
Inheritance Hierarchy
ObjectRectangleF
Class Information
| Namespace | System.Drawing |
|---|
| Flash Library | System.Drawing.scl |
|---|
| Flash Library Version | 2.0.0.1291 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|