IDesignerEventService Interface

 

Provides event notifications when root designers are added and removed, when a selected component changes, and when the current root designer changes.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

type IDesignerEventService = interface end

NameDescription
System_CAPS_pubpropertyActiveDesigner

Gets the root designer for the currently active document.

System_CAPS_pubpropertyDesigners

Gets a collection of root designers for design documents that are currently active in the development environment.

NameDescription
System_CAPS_pubeventActiveDesignerChanged

Occurs when the current root designer changes.

System_CAPS_pubeventDesignerCreated

Occurs when a root designer is created.

System_CAPS_pubeventDesignerDisposed

Occurs when a root designer for a document is disposed.

System_CAPS_pubeventSelectionChanged

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: