共用方式為


Package.IVsToolWindowFactory.CreateToolWindow(Guid, UInt32) Method

Definition

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

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid % toolWindowType, System::UInt32 id) = Microsoft::VisualStudio::Shell::Interop::IVsToolWindowFactory::CreateToolWindow;
int IVsToolWindowFactory.CreateToolWindow (ref Guid toolWindowType, uint id);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow : Guid * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow : Guid * uint32 -> int
Function CreateToolWindow (ByRef toolWindowType As Guid, id As UInteger) As Integer Implements IVsToolWindowFactory.CreateToolWindow

Parameters

toolWindowType
Guid

Type of the window to be created

id
UInt32

Instance ID or 0 for single instance toolwindows

Returns

HRESULT for toolwindow creation

Implements

Applies to