編輯

共用方式為


ComponentTray(IDesigner, IServiceProvider) Constructor

Definition

Initializes a new instance of the ComponentTray class using the specified designer and service provider.

public:
 ComponentTray(System::ComponentModel::Design::IDesigner ^ mainDesigner, IServiceProvider ^ serviceProvider);
public ComponentTray (System.ComponentModel.Design.IDesigner mainDesigner, IServiceProvider serviceProvider);
new System.Windows.Forms.Design.ComponentTray : System.ComponentModel.Design.IDesigner * IServiceProvider -> System.Windows.Forms.Design.ComponentTray
Public Sub New (mainDesigner As IDesigner, serviceProvider As IServiceProvider)

Parameters

mainDesigner
IDesigner

The IDesigner that is the main or document designer for the current project.

serviceProvider
IServiceProvider

An IServiceProvider that can be used to obtain design-time services.

Remarks

The component tray monitors component additions and removals and displays appropriate user interface objects to represent the components it contains.

Applies to