Click or drag to resize
DigitalRuneRectangleF Structure
Represents a 2-dimensional rectangle (single precision).

Namespace: DigitalRune.Game.UI
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
[SerializableAttribute]
public struct RectangleF : IEquatable<RectangleF>

The RectangleF type exposes the following members.

Constructors
  NameDescription
Public methodRectangleF(Rectangle)
Initializes a new instance of the RectangleF struct from a Rectangle.
Public methodRectangleF(Single, Single, Single, Single)
Initializes a new instance of the RectangleF struct with the given values.
Top
Methods
  NameDescription
Public methodContains(RectangleF)
Determines whether rectangle contains the specified rectangle.
Public methodContains(Vector2F)
Determines whether rectangle contains the specified point.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(RectangleF)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIntersect
Creates a rectangle that contains the overlap between the given rectangles.
Public methodIntersects
Determines whether this rectangle intersects with the specified rectangle.
Public methodToRectangle
Converts the RectangleF (floating-point, single precision) to a Rectangle (integer precision).
Public methodToString
Returns the string representation of this rectangle.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Returns the string representation of this rectangle using the specified culture-specific format information.
Public methodStatic memberUnion
Creates the smallest rectangle that contains the given rectangles.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two RectangleFs to determine whether they are the same.
Public operatorStatic memberInequality
Compares two RectangleFs to determine whether they are the different.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
An empty rectangle (all values set to zero).
Public fieldHeight
The height of the rectangle.
Public fieldWidth
The width of the rectangle.
Public fieldX
The x-coordinate of the rectangle. (Same as Left.)
Public fieldY
The y-coordinate of the rectangle. (Same as Top.)
Top
Properties
  NameDescription
Public propertyBottom
Gets the y-coordinate of the bottom side of the rectangle.
Public propertyLeft
Gets the x-coordinate of the left side of the rectangle.
Public propertyLocation
Gets or sets the position of the upper, left corner of the rectangle.
Public propertyRight
Gets the x-coordinate of the right side of the rectangle.
Public propertySize
Gets or sets the size (width, height) of the rectangle.
Public propertyTop
Gets the y-coordinate of the top side of the rectangle.
Top
See Also