UIControlledApplication.RegisterDockablePane
Method
Description:
Adds a new dockable pane to the Revit user interface.
Adds a new dockable pane to the Revit user interface.
Syntax
public void RegisterDockablePane(
DockablePaneId id,
string title,
IDockablePaneProvider provider
)
Examples
public Result OnStartup(UIControlledApplication application)
{
// Create our pane provider and register it with the application
PaneProvider prov = new PaneProvider();
DockablePaneId id = new DockablePaneId(Guid.NewGuid());
application.RegisterDockablePane(id, "test", prov);
return Result.Succeeded;
}
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | DockablePaneId | Unique identifier for the new pane. |
| title | String | String to use for the pane caption. |
| provider | IDockablePaneProvider | Your add-in's implementation of the IDockablePaneProvider interface. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if a dockable pane with identifier %id% has already been registered. |