Package.CreateToolWindow Package.CreateToolWindow Package.CreateToolWindow Method

Definition

Overloads

CreateToolWindow(Type, Int32, UInt32) CreateToolWindow(Type, Int32, UInt32) CreateToolWindow(Type, Int32, UInt32)

Creates a tool window of the specified type with the specified ID.

CreateToolWindow(Type, Int32, Object) CreateToolWindow(Type, Int32, Object) CreateToolWindow(Type, Int32, Object)
CreateToolWindow(Type, Int32, UInt32, Object, Guid) CreateToolWindow(Type, Int32, UInt32, Object, Guid) CreateToolWindow(Type, Int32, UInt32, Object, Guid)
CreateToolWindow(Guid, Int32) CreateToolWindow(Guid, Int32) CreateToolWindow(Guid, Int32)

Creates a tool window of the specified type with the specified ID.

CreateToolWindow(Type, Int32) CreateToolWindow(Type, Int32) CreateToolWindow(Type, Int32)

Creates a tool window of the specified type with the specified ID.

CreateToolWindow(Type, Int32, UInt32) CreateToolWindow(Type, Int32, UInt32) CreateToolWindow(Type, Int32, UInt32)

Creates a tool window of the specified type with the specified ID.

protected Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow (Type toolWindowType, int id, uint flags);
member this.CreateToolWindow : Type * int * uint32 -> Microsoft.VisualStudio.Shell.WindowPane
Protected Function CreateToolWindow (toolWindowType As Type, id As Integer, flags As UInteger) As WindowPane
Parameters
toolWindowType
Type Type Type

The type of the window to be created.

id
Int32 Int32 Int32

The instance ID, or 0 for single instance tool windows.

Returns

An instance of a class derived from ToolWindowPane.

CreateToolWindow(Type, Int32, Object) CreateToolWindow(Type, Int32, Object) CreateToolWindow(Type, Int32, Object)

protected virtual Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow (Type toolWindowType, int id, object context);
abstract member CreateToolWindow : Type * int * obj -> Microsoft.VisualStudio.Shell.WindowPane
override this.CreateToolWindow : Type * int * obj -> Microsoft.VisualStudio.Shell.WindowPane
Protected Overridable Function CreateToolWindow (toolWindowType As Type, id As Integer, context As Object) As WindowPane
Parameters
toolWindowType
Type Type Type
context
Object Object Object
Returns

CreateToolWindow(Type, Int32, UInt32, Object, Guid) CreateToolWindow(Type, Int32, UInt32, Object, Guid) CreateToolWindow(Type, Int32, UInt32, Object, Guid)

protected Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow (Type toolWindowType, int id, uint flags, object context, Guid persistenceGuid = null);
member this.CreateToolWindow : Type * int * uint32 * obj * Guid -> Microsoft.VisualStudio.Shell.WindowPane
Protected Function CreateToolWindow (toolWindowType As Type, id As Integer, flags As UInteger, context As Object, Optional persistenceGuid As Guid = null) As WindowPane
Parameters
toolWindowType
Type Type Type
context
Object Object Object
persistenceGuid
Guid Guid Guid
Returns

CreateToolWindow(Guid, Int32) CreateToolWindow(Guid, Int32) CreateToolWindow(Guid, Int32)

Creates a tool window of the specified type with the specified ID.

protected virtual int CreateToolWindow (ref Guid toolWindowType, int id);
abstract member CreateToolWindow :  * int -> int
override this.CreateToolWindow :  * int -> int
Protected Overridable Function CreateToolWindow (ByRef toolWindowType As Guid, id As Integer) As Integer
Parameters
toolWindowType
Guid Guid Guid

The GUID of the tool window type.

id
Int32 Int32 Int32

The instance ID or 0 for single instance tool windows

Returns

S_OK if the window creation succeeded, otherwise a failure HRESULT.

CreateToolWindow(Type, Int32) CreateToolWindow(Type, Int32) CreateToolWindow(Type, Int32)

Creates a tool window of the specified type with the specified ID.

protected virtual Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow (Type toolWindowType, int id);
abstract member CreateToolWindow : Type * int -> Microsoft.VisualStudio.Shell.WindowPane
override this.CreateToolWindow : Type * int -> Microsoft.VisualStudio.Shell.WindowPane
Protected Overridable Function CreateToolWindow (toolWindowType As Type, id As Integer) As WindowPane
Parameters
toolWindowType
Type Type Type

The type of tool window to create.

id
Int32 Int32 Int32

The tool window ID. This is 0 for a single-instance tool window.

Returns

An instance of the requested tool window.

Exceptions
  • id is less than 0.

  • toolWindowType is not derived from ToolWindowPane type.

Remarks

The CreateToolWindow method creates an instance of the given tool window. This is used within the Package base class when implementing the Visual Studio interface tool window creation code as well as the FindToolWindow method.

Applies to