แก้ไข

แชร์ผ่าน


DesignSurface.ServiceContainer Property

Definition

Gets the service container.

protected:
 property System::ComponentModel::Design::ServiceContainer ^ ServiceContainer { System::ComponentModel::Design::ServiceContainer ^ get(); };
protected System.ComponentModel.Design.ServiceContainer ServiceContainer { get; }
member this.ServiceContainer : System.ComponentModel.Design.ServiceContainer
Protected ReadOnly Property ServiceContainer As ServiceContainer

Property Value

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

Exceptions

The IDesignerHost attached to the DesignSurface has been disposed.

Remarks

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.

Applies to