Compartir a través de


Package.InstantiateToolWindow Method

Definition

Overloads

InstantiateToolWindow(Type)
InstantiateToolWindow(Type, Object)

Construct a tool window of the specified type.

InstantiateToolWindow(Type)

protected:
 virtual Microsoft::VisualStudio::Shell::WindowPane ^ InstantiateToolWindow(Type ^ toolWindowType);
protected virtual Microsoft.VisualStudio.Shell.WindowPane InstantiateToolWindow (Type toolWindowType);
abstract member InstantiateToolWindow : Type -> Microsoft.VisualStudio.Shell.WindowPane
override this.InstantiateToolWindow : Type -> Microsoft.VisualStudio.Shell.WindowPane
Protected Overridable Function InstantiateToolWindow (toolWindowType As Type) As WindowPane

Parameters

toolWindowType
Type

Type of the window to be created

Returns

An instance of a class derived from WindowPane

Remarks

This method should be overriden when a package wishes to use something other than the default constructor to create their tool windows.

Applies to

InstantiateToolWindow(Type, Object)

Construct a tool window of the specified type.

protected:
 virtual Microsoft::VisualStudio::Shell::WindowPane ^ InstantiateToolWindow(Type ^ toolWindowType, System::Object ^ context);
protected virtual Microsoft.VisualStudio.Shell.WindowPane InstantiateToolWindow (Type toolWindowType, object context);
abstract member InstantiateToolWindow : Type * obj -> Microsoft.VisualStudio.Shell.WindowPane
override this.InstantiateToolWindow : Type * obj -> Microsoft.VisualStudio.Shell.WindowPane
Protected Overridable Function InstantiateToolWindow (toolWindowType As Type, context As Object) As WindowPane

Parameters

toolWindowType
Type

Type of the window to be created

context
Object

The context object to pass to the constructor

Returns

An instance of a class derived from WindowPane

Remarks

This method should be over-ridden when a package wishes to use something other than the default constructor or a constructor that takes a single parameter of the same type as the dynamic type of context (or a base type of the dynamic type of context) to create their tool windows.

Applies to