SetFloatingRectangle Method


When %dockPosition% is Floating, sets the rectangle used to determine the size and position of the pane when %dockPosition% is Floating. Coordinates are relative to the upper-left-hand corner of the main Revit window.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2014

Syntax

C#
public void SetFloatingRectangle(
	Rectangle rect
)
Visual Basic
Public Sub SetFloatingRectangle ( _
	rect As Rectangle _
)
Visual C++
public:
void SetFloatingRectangle(
	Rectangle^ rect
)

Parameters

rect
Type: Autodesk.Revit.DB Rectangle
The rectangle to use when floating.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException Rectangle is not normalized.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

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 →