DesignSurface::ServiceContainer Property
.NET Framework (current version)
Gets the service container.
Assembly: System.Design (in System.Design.dll)
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
Available since 2.0
Show: