This topic has not yet been rated - Rate this topic

VsShellUtilities Class

Provides static helper methods to use with the Visual Studio shell.

Object
  Microsoft.VisualStudio.Shell.VsShellUtilities

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
public static class VsShellUtilities

The VsShellUtilities type exposes the following members.

  NameDescription
Public methodStatic memberApplyListViewThemeStylesModifies a Windows Forms ListView control to use the new Explorer style theme.
Public methodStatic memberApplyTreeViewThemeStyles(TreeView)Modifies a Windows Forms TreeView control to use the new Explorer style theme. Hot tracking is enabled by default.
Public methodStatic memberApplyTreeViewThemeStyles(TreeView, Boolean)Modifies a Windows Forms TreeView control to use the new Explorer style theme.
Public methodStatic memberEmptyTaskListEmpties the task list.
Public methodStatic memberGetCfgProvider
Public methodStatic memberGetDebugModeGets the current debug mode of the shell, for example, design mode, running mode, or break mode.
Public methodStatic memberGetEnvironmentFontRetrieve the host's environment font as a Font.
Public methodStatic memberGetErrorListItems
Public methodStatic memberGetHierarchyGets the hierarchy node that is specified by the project GUID.
Public methodStatic memberGetMiscellaneousProject(IServiceProvider)Gets the miscellaneous project from the current solution.
Public methodStatic memberGetMiscellaneousProject(IServiceProvider, Boolean)Returns the miscellaneous project in a solution.
Public methodStatic memberGetOutputWindowPaneGets the output window pane that is specified by the GUID.
Public methodStatic memberGetPackageExtensionPoint<TExtensionPoint, TInterface>
Public methodStatic memberGetProjectReturns a project for the specified document.
Public methodStatic memberGetRDTDocumentInfoGets an IVsPersistDocData interface and a document cookie from the running document table for the specified document.
Public methodStatic memberGetRunningDocumentContentsGets the text of the specified file, if it exists in the running document table.
Public methodStatic memberGetTaskItems Obsolete. Gets a list of tasks.
Public methodStatic memberGetTaskItems2 Obsolete. Gets a list of all task items.
Public methodStatic memberGetTaskItems3
Public methodStatic memberGetTextViewGets the text view in the specified window frame.
Public methodStatic memberGetUIHierarchyWindowGets a window for the given GUID.
Public methodStatic memberGetWindowObjectGets the window that exists in the specified window frame.
Public methodStatic memberIsDocumentOpenDetermines whether the specified document is open.
Public methodStatic memberIsInAutomationFunctionDetermines whether the extensibility object is currently executing an automation operation.
Public methodStatic memberIsSolutionBuildingDetermines whether the build manager is busy.
Public methodStatic memberIsVisualStudioInDesignModeDetermines whether Visual Studio is in design mode (as opposed to run mode or debug mode).
Public methodStatic memberLaunchDebuggerStarts the debugger.
Public methodStatic memberLookupPackageString
Public methodStatic memberOpenAsMiscellaneousFileOpens the specified miscellaneous file in the specified editor.
Public methodStatic memberOpenBrowser(String)
Public methodStatic memberOpenBrowser(String, UInt32)
Public methodStatic memberOpenDocument(IServiceProvider, String)Opens the specified document.
Public methodStatic memberOpenDocument(IServiceProvider, String, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame)Opens the specified document in the specified view.
Public methodStatic memberOpenDocument(IServiceProvider, String, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame, IVsTextView)Opens the specified document in the specified logical view.
Public methodStatic memberOpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid)Opens the specified document by using the specified editor.
Public methodStatic memberOpenDocumentWithSpecificEditor(IServiceProvider, String, Guid, Guid, IVsUIHierarchy, UInt32, IVsWindowFrame)Opens the specified document by using the specified editor.
Public methodStatic memberOpenSystemBrowser
Public methodStatic memberPromptYesNoDisplays a message box that contains the specified title and prompts the user to respond (yes or no) to the specified message.
Public methodStatic memberRenameDocumentRenames the specified document.
Public methodStatic memberSaveFileIfDirty(IVsTextView)If the file is dirty, saves it in the specified text view.
Public methodStatic memberSaveFileIfDirty(IServiceProvider, String)Saves the specified file if it is dirty.
Public methodStatic memberSetOleCmdText
Public methodStatic memberShowMessageBoxDisplays a message box with the specified message.
Public methodStatic memberTryGetPackageExtensionPoint<TExtensionPoint, TInterface>
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.