IDesignerEventService Interface
Provides event notifications when root designers are added and removed, when a selected component changes, and when the current root designer changes.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | ActiveDesigner | Gets the root designer for the currently active document. |
![]() | Designers | Gets a collection of root designers for design documents that are currently active in the development environment. |
| Name | Description | |
|---|---|---|
![]() | ActiveDesignerChanged | Occurs when the current root designer changes. |
![]() | DesignerCreated | Occurs when a root designer is created. |
![]() | DesignerDisposed | Occurs when a root designer for a document is disposed. |
![]() | SelectionChanged | Occurs when the current design-view selection changes. |
IDesignerEventService provides notification when a new root designer is created, changed, or disposed. A root designer provides design time support for the base component of a document in designer view. The SelectionChanged event provides notification when the current component selection has changed.
This example demonstrates a designer that uses the IDesignerEventService to display event notifications on a control. To use this example, compile the code to a class library. Add a reference to the library to a new Windows Forms project, and add the control within the library to the Toolbox. Add an instance of the DesignerMonitor control to a form in design mode. Right-click the control and click the Start monitoring command to display notifications of events raised by the IDesignerEventService.
Available since 1.1

