Constructs a extension instance with a control and ok action handler.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2013
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- userControl
- Type: System.Windows.ControlsUserControl
The control.
- onOK
- Type: Autodesk.Revit.UITabbedDialogAction
The ok action handler.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | Thrown when userControl or onOK is a null reference (Nothing in Visual Basic). |
| Autodesk.Revit.ExceptionsArgumentException | Thrown when userControl is already bound to another tabbed dialog. |