Skip to content

Rectangle(Int32, Int32, Int32, Int32)

Public 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

leftInt32

The x-coordinate of the top-left corner.

topInt32

The y-coordinate of the top-left corner.

rightInt32

The x-coordinate of the bottom-right corner.

bottomInt32

The y-coordinate of the bottom-right corner.