IDesignerHost is an interface that works with the .NET Framework forms designer architecture to provide support for designer transaction and component management.
The .NET Framework does not provide an implementation of this interface. The interface is implemented by development tools that support designers.
Notes to Callers:
To obtain an implementation of IDesignerHost from a development environment, call GetService while your component is active in design mode, passing the type of IDesignerHost to request an IDesignerHost service interface.
IDesignerHost provides the following members related to designer state:
The Loading property indicates whether a designer or document is being loaded.
The Activated event occurs when a designer is activated before display.
The Deactivated event occurs when a designer is deactivated.
The LoadComplete event occurs after a document is loaded.
The Activate method activates the designer.
IDesignerHost provides the following members related to managing components:
The Container property indicates the container for the designer host.
The RootComponent property indicates the base class for the root component.
The RootComponentClassName property indicates the name of the class of the root component.
The CreateComponent method creates the specified type of component.
The DestroyComponent method destroys the specified component.
The GetDesigner method gets the designer associated with a specified component.
The GetType method gets an instance of the type with the specified name.
IDesignerHost provides the following members related to managing transactions: