| Revit 2022.1 API |
| DetailElementOrderUtils..::..BringToFront Method (Document, View, ElementId) |
| DetailElementOrderUtils Class See Also |
Places the given detail instance in the front of all other detail instances in the view.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.1.0)
Since:
2013
Syntax
| C# |
|---|
public static void BringToFront( Document pDocument, View pDBView, ElementId detailElementId ) |
| Visual Basic |
|---|
Public Shared Sub BringToFront ( _ pDocument As Document, _ pDBView As View, _ detailElementId As ElementId _ ) |
| Visual C++ |
|---|
public: static void BringToFront( Document^ pDocument, View^ pDBView, ElementId^ detailElementId ) |
Parameters
- pDocument
- Type: Autodesk.Revit.DB..::..Document
The document.
- pDBView
- Type: Autodesk.Revit.DB..::..View
The view.
- detailElementId
- Type: Autodesk.Revit.DB..::..ElementId
The detail elementId
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | The element detailElementId is not a detail element. |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |