Rectangle
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.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Rectangle
System.Object
Autodesk.Revit.DB.Rectangle
public class Rectangle : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Rectangle() | None | Create an empty Rectangle instance with values (0,0,0,0). | |
| Rectangle(Rectangle) | None | Constructs a new copy of the input ScreenRectangle object. | |
| Rectangle(Int32, Int32, Int32, Int32) | None | Creates an Rectangle instance with the specified four integers that represent the left, top, right and bottom of a rectangle. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the Rectangle | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsNormalized() | Boolean | 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 | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Bottom | int | The y-coordinate of the bottom-right corner of the rectangle. | |
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. | |
| Left | int | The x-coordinate of the top-left corner of the rectangle. | |
| Right | int | The x-coordinate of the bottom-right corner of the rectangle. | |
| Top | int | The y-coordinate of the top-left corner of the rectangle. |