Compartir a través de


ToolWindowGuids Class

Provides GUIDs that are used to identify Visual Studio tool windows.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.Interop.ToolWindowGuids

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Public MustInherit Class ToolWindowGuids
public abstract class ToolWindowGuids
public ref class ToolWindowGuids abstract
[<AbstractClass>]
type ToolWindowGuids =  class end
public abstract class ToolWindowGuids

The ToolWindowGuids type exposes the following members.

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member BrowserDoc For internal use only.
Public fieldStatic member ClassView This tool window provides a list of all classes in a solution.
Public fieldStatic member CommandWindow This tool window provides a way to execute commands directly in the Visual Studio shell.
Public fieldStatic member ContextWindow This tool window provides links to help topics based on the current context.
Public fieldStatic member DocOutline This tool window provides an outline of an HTML file.
Public fieldStatic member FindAdvanced This tool window provides the ability to search files for a string.
Public fieldStatic member FindReplace This tool window provides the ability to search and replace on the currently opened file.
Public fieldStatic member FindResults1 This tool window provides a list of the search results.
Public fieldStatic member FindResults2 This tool window provides a second list of search results.
Public fieldStatic member MacroExplorer This tool window provides a list of macros available for use in the Visual Studio shell.
Public fieldStatic member ObjectBrowser This tool window provides a list of components installed on the system.
Public fieldStatic member ObjectSearchResultsWindow This tool window provides the results of searching for a symbol.
Public fieldStatic member ObjectSearchWindow This tool window provides the ability to search for a symbol.
Public fieldStatic member Outputwindow This tool window displays any output generated by a build process or a program being debugged.
Public fieldStatic member PropertyBrowser This tool window provides a list of properties associated with the currently selected file or project in Solution Explorer.
Public fieldStatic member ResourceView This tool window provides a list of resources available in a project.
Public fieldStatic member ServerExplorer This tool window provides a list of servers used for connecting to databases.
Public fieldStatic member SolutionExplorer This tool window provides a list of projects and their files in a solution.
Public fieldStatic member TaskList This tool window provides a list of user-specified tasks to be accomplished for a project.
Public fieldStatic member Toolbox This tool window provides a list of components that can be added to a project, typically through the Windows Forms designer.

Top

Remarks

Note

This collection of GUIDs is specific to Visual Studio .NET 2003. All of these contexts are also included in the ToolWindowGuids80 collection for later versions of Visual Studio.

The various tool windows in Visual Studio have unique GUIDs assigned to them. These GUIDs can be used as a context which can be monitored through the SVsShellMonitorSelection service (see the AdviseSelectionEvents method). It is also possible to request the state of each tool window by using the methods of the IVsMonitorSelection interface, which in turn is obtained from the SVsShellMonitorSelection service.

VSPackages that have user interface (UI) elements can associate these UI elements with particular tool windows and dialog boxes. When the tool windows become active or inactive, the associated UI elements of the VSPackage are automatically activated or deactivated as well. The VSPackage makes this association between its own UI elements and the tool windows using the VISIBILITY_SECTION section of the Command Table Compiler (.ctc) file that is part of the VSPackage. You must manually copy the GUID for a tool window into your .ctc file. For example, if you want to have a menu item associated with the Find and Replace tool window, you must create a label for the FindReplace GUID:

#define guidFindReplace { 0xCF2DDC32, 0x8CAD, 0x11D2, { 0x93, 0x02, 0x00, 0x53, 0x45, 0x00, 0x00, 0x 00 } }

You then use that definition in the VISIBLITY_SECTION of the .ctc file:

VISIBILITY_SECTION
    // Command                        GUID when visible
    guidMyCmdSet:cmdidMyMenuCommand,  guidFindReplace;
VISIBILITY_END

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace