Namespace:
Autodesk.Revit.DB
Rectangle
Class
Description:
Stores a set of four integers that represent the left, top, right and bottom of a rectangle.
Stores a set of four integers that represent the left, top, right and bottom of a rectangle.
Remarks:
It usually represents a rectangle on the screen. Left must be less than right and top must be less than bottom.
It usually represents a rectangle on the screen. Left must be less than right and top must be less than bottom.
Rectangle Class Members:
| Name | Description | Inherited From |
|---|---|---|
| Rectangle() | Create an empty Rectangle instance with values (0,0,0,0). | |
| Rectangle(Rectangle) | Constructs a new copy of the input ScreenRectangle object. | |
| Rectangle(Int32, Int32, Int32, Int32) | Creates an Rectangle instance with the specified four integers that represent the left, top, right and bottom of a rectangle. |
| Name | Description | Inherited From |
|---|---|---|
| Bottom | The y-coordinate of the bottom-right corner of the rectangle. | |
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. | |
| Left | The x-coordinate of the top-left corner of the rectangle. | |
| Right | The x-coordinate of the bottom-right corner of the rectangle. | |
| Top | The y-coordinate of the top-left corner of the rectangle. |
| Name | Description | Inherited From |
|---|---|---|
| Dispose | Releases all resources used by the Rectangle | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsNormalized | Returns true if the rectangle coordinates are normalized to the screen coordinate space; that is, left is less than right and top is less than bottom. | |
| ToString | Returns a string that represents the current object. (Inherited from Object ) | Object |