ModelingPackage.GetToolWindow Method (Type)

Gets a tool window.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Public Function GetToolWindow ( _
    toolWindowType As Type _
) As ToolWindow
'使用
Dim instance As ModelingPackage
Dim toolWindowType As Type
Dim returnValue As ToolWindow

returnValue = instance.GetToolWindow(toolWindowType)
public ToolWindow GetToolWindow(
    Type toolWindowType
)
public:
ToolWindow^ GetToolWindow(
    Type^ toolWindowType
)
public function GetToolWindow(
    toolWindowType : Type
) : ToolWindow

Parameters

  • toolWindowType
    Type: System.Type

    The type of tool window to retrieve.

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.ToolWindow

The tool window or a null reference (Nothing in Visual Basic) if no tool window is returned.

Remarks

Only single-instance tool windows are supported. Therefore, a 1:1 mapping always results.

Permissions

See Also

Reference

ModelingPackage Class

ModelingPackage Members

GetToolWindow Overload

Microsoft.VisualStudio.Modeling.Shell Namespace