Click or drag to resize
Rect Structure
Implements primitive float Rectangle

Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.Core (in EmptyKeys.UserInterface.Core.dll) Version: 2.5.0.0 (2.5.0.0)
Syntax
C#
public struct Rect : IEquatable<Rect>

The Rect type exposes the following members.

Constructors
  NameDescription
Public methodRect(PointF, PointF)
Initializes a new instance of the Rect struct.
Public methodRect(Double, Double, Double, Double)
Initializes a new instance of the Rect struct.
Public methodRect(Single, Single, Single, Single)
Initializes a new instance of the Rect struct.
Top
Properties
  NameDescription
Public propertyBottom
Gets the bottom.
Public propertyStatic memberEmpty
Gets the empty rectangle
Public propertyIsEmpty
Gets a value indicating whether this instance is empty.
Public propertyLeft
Gets the left.
Public propertyLocation
Gets or sets the location.
Public propertyRight
Gets the right.
Public propertySize
Gets or sets the size.
Public propertyTop
Gets the top.
Top
Methods
  NameDescription
Public methodContains
Determines whether [contains] [the specified point].
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Rect)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Top
Fields
  NameDescription
Public fieldHeight
The height
Public fieldWidth
The width
Public fieldX
The x
Public fieldY
The y
Top
See Also