DesignSurface::ServiceContainer Property

 

Gets the service container.

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

protected:
property ServiceContainer^ ServiceContainer {
	ServiceContainer^ get();
}

Property Value

Type: System.ComponentModel.Design::ServiceContainer^

The service container that provides all services to designers contained within the design surface.

Exception Condition
ObjectDisposedException

The IDesignerHost attached to the DesignSurface has been disposed.

At construction time, DesignSurface adds default services into this service container. You can leave the default services in their present state, or you can remove them and replace them with your own. The default services are all demand-created, so there is no loss in performance for adding them at construction time.

.NET Framework
Available since 2.0
Return to top
Show: