Rectangle Constructor (Int32, Int32, Int32, Int32)


Rectangle(Int 32, Int 32, Int 32, Int 32) Constructor

Creates an Rectangle instance with the specified four integers that represent the left, top, right and bottom of a rectangle.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Rectangle(
	int left,
	int top,
	int right,
	int bottom
)

Parameters

left Int32
The x-coordinate of the top-left corner.
top Int32
The y-coordinate of the top-left corner.
right Int32
The x-coordinate of the bottom-right corner.
bottom Int32
The y-coordinate of the bottom-right corner.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →