Επεξεργασία

Κοινή χρήση μέσω


DesignSurfaceManager.CreateDesignSurfaceCore(IServiceProvider) Method

Definition

Implementation that creates the design surface.

protected:
 virtual System::ComponentModel::Design::DesignSurface ^ CreateDesignSurfaceCore(IServiceProvider ^ parentProvider);
protected virtual System.ComponentModel.Design.DesignSurface CreateDesignSurfaceCore (IServiceProvider parentProvider);
abstract member CreateDesignSurfaceCore : IServiceProvider -> System.ComponentModel.Design.DesignSurface
override this.CreateDesignSurfaceCore : IServiceProvider -> System.ComponentModel.Design.DesignSurface
Protected Overridable Function CreateDesignSurfaceCore (parentProvider As IServiceProvider) As DesignSurface

Parameters

parentProvider
IServiceProvider

A service provider to pass to the design surface. This is either an instance of DesignSurfaceManager or an object that implements IServiceProvider, and represents a merge between the service provider of the DesignSurfaceManager class and an externally passed provider.

Returns

A new design surface instance.

Remarks

The CreateDesignSurfaceCore method is called by both CreateDesignSurface methods. It is the implementation that actually creates the design surface. The default implementation just returns a new DesignSurface. You may override this method to provide a custom object that derives from the DesignSurface class.

Applies to

See also