Rect Methods |
The Rect type exposes the following members.
| Name | Description | |
|---|---|---|
| CompareTo |
Compares the current instance with another
object of the same type and returns an integer that indicates
whether the current instance precedes, follows, or occurs in the
same position in the sort order as the other object
|
|
| Contains(Rect, Point) |
Works out if a rect contains a point. A point
at the top or left of the rectangle is counted as contained but one
at the bottom or right is not. Thus an empty rectangle never
contains any points.
|
|
| Contains(Rect, Rect) |
Works out if one rect (a) completely contains
another (b). Identical rectangles are counted as contained.
|
|
| Contains(Rect, Point, Double) |
Works out if a rect contains a point. A point
at the top or left of the rectangle is counted as contained but one
at the bottom or right is not. Thus an empty rectangle never
contains any points.
|
|
| Equals(Object) |
Compare for equality.
(Overrides ValueTypeEquals(Object).) |
|
| Equals(Rect, Double) |
Compare for equality.
|
|
| GetHashCode |
Obtain a hash code for the Rect.
(Overrides ValueTypeGetHashCode.) |
|
| Intersect |
Find the intersection of two rectangles.
|
|
| IntersectsWith |
Determines if one rectangle intersects with
another.
|
|
| Round |
Round the dimensions of the rect to the
nearest integer.
|
|
| ToString |
Convert the Rect to a human readable string
such as \'X=10; Y=20; W=100; H=200\'.
(Overrides ValueTypeToString.) |
|
| ToString(IFormatProvider) |
Convert the Rect to a human readable string
such as \'X=10; Y=20; W=100; H=200\'.
|
|
| Union |
Determine the union of two supplied
rectangles. The union is the smallest rectangle that contains both
rectangles.
|