WindowPaneProviderService::CreateWindowPane Method (DesignSurface^)

 

Creates a window pane for the specified design surface.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
virtual DesignerWindowPane^ CreateWindowPane(
	DesignSurface^ surface
)

Parameters

surface
Type: System.ComponentModel.Design::DesignSurface^

The DesignSurface from which the window pane is created.

This method throws an appropriate exception if the window pane cannot be created. Normally this occurs if either the design surface is not ready to provide a view, or if no compatible view technology providers are registered. It throws the exception ArgumentNullException if surface is null. In Visual Studio 2005 SDK DocData is initialized at the beginning but this was not always the case. For backwards compatibility the code confirms that loading was successful. If it was, and if the root component is null, then assume Windows Forms as the view technology. If that is the case, the default behavior is to create a windows forms view by calling CreateWindowPane.

Return to top
Show: