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 |
|---|---|---|
| Rectangle() | None | Create an empty Rectangle instance with values (0,0,0,0). |
| 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. |
| Rectangle(Rectangle) | None | Constructs a new copy of the input ScreenRectangle object. |
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| IsNormalized() | bool | 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. |
| Name | Return Type | Description |
|---|---|---|
| Bottom | int | The y-coordinate of the bottom-right corner of the rectangle. |
| IsValidObject | bool | 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. |