| RectangleF Structure |
Namespace: DigitalRune.Game.UI
The RectangleF type exposes the following members.
| Name | Description | |
|---|---|---|
| RectangleF(Rectangle) |
Initializes a new instance of the RectangleF struct from a
Rectangle.
| |
| RectangleF(Single, Single, Single, Single) |
Initializes a new instance of the RectangleF struct with the given values.
|
| Name | Description | |
|---|---|---|
| Contains(RectangleF) |
Determines whether rectangle contains the specified rectangle.
| |
| Contains(Vector2F) |
Determines whether rectangle contains the specified point.
| |
| Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) | |
| Equals(RectangleF) |
Indicates whether the current object is equal to another object of the same type.
| |
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Intersect |
Creates a rectangle that contains the overlap between the given rectangles.
| |
| Intersects |
Determines whether this rectangle intersects with the specified rectangle.
| |
| ToRectangle |
Converts the RectangleF (floating-point, single precision) to a
Rectangle (integer precision).
| |
| ToString |
Returns the string representation of this rectangle.
(Overrides ValueTypeToString.) | |
| ToString(IFormatProvider) |
Returns the string representation of this rectangle using the specified culture-specific
format information.
| |
| Union |
Creates the smallest rectangle that contains the given rectangles.
|
| Name | Description | |
|---|---|---|
| Equality |
Compares two RectangleFs to determine whether they are the same.
| |
| Inequality |
Compares two RectangleFs to determine whether they are the different.
|
| Name | Description | |
|---|---|---|
| Empty |
An empty rectangle (all values set to zero).
| |
| Height |
The height of the rectangle.
| |
| Width |
The width of the rectangle.
| |
| X |
The x-coordinate of the rectangle. (Same as Left.)
| |
| Y |
The y-coordinate of the rectangle. (Same as Top.)
|
| Name | Description | |
|---|---|---|
| Bottom |
Gets the y-coordinate of the bottom side of the rectangle.
| |
| Left |
Gets the x-coordinate of the left side of the rectangle.
| |
| Location |
Gets or sets the position of the upper, left corner of the rectangle.
| |
| Right |
Gets the x-coordinate of the right side of the rectangle.
| |
| Size |
Gets or sets the size (width, height) of the rectangle.
| |
| Top |
Gets the y-coordinate of the top side of the rectangle.
|