RemoveControl Method


Temporary Graphics Manager Remove Control Method

Deletes the existing control identified by the unique index.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void RemoveControl(
	int index
)

Parameters

index Int32
Unique index of the control to be deleted.
Exceptions
Exception Condition
ArgumentException index is out of range of TemporaryGraphicsManager managed objects, or the indexed object has been removed from the document.
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 →