<Code Lib>
2024 Class
Changes 0
C

Rectangle

Description:
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Rectangle

public class Rectangle : IDisposable

Name Return Type Description
C Rectangle() Rectangle Create an empty Rectangle instance with values (0,0,0,0).
C Rectangle(Int32, Int32, Int32, Int32) Rectangle Creates an Rectangle instance with the specified four integers that represent the left, top, right and bottom of a rectangle.
C Rectangle(Rectangle) Rectangle Constructs a new copy of the input ScreenRectangle object.

Name Return Type Description
M Dispose() None Releases all resources used by the
M 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
P Bottom int The y-coordinate of the bottom-right corner of the rectangle.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P Left int The x-coordinate of the top-left corner of the rectangle.
P Right int The x-coordinate of the bottom-right corner of the rectangle.
P Top int The y-coordinate of the top-left corner of the rectangle.

Loading…