This topic has not yet been rated - Rate this topic

DesignSurfaceManager.CreateDesignSurfaceCore Method

Implementation that creates the design surface.

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)
protected virtual DesignSurface CreateDesignSurfaceCore(
	IServiceProvider parentProvider
)

Parameters

parentProvider
Type: System.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.

Return Value

Type: System.ComponentModel.Design.DesignSurface
A new design surface instance.

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ