IVsUIShell2 Interface

Extends the functionality of the IVsUIShell interface by providing access to additional window functionalities.

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


<GuidAttribute("4E6B6EF9-8E3D-4756-99E9-1192BAAD5496")> _
<InterfaceTypeAttribute()> _
Public Interface IVsUIShell2
public interface IVsUIShell2
public interface class IVsUIShell2
type IVsUIShell2 =  interface end
public interface IVsUIShell2

The IVsUIShell2 type exposes the following members.


Name Description
Public method CreateGlyphImageButton Creates a mixed image/text button using the specified glyph as the image.
Public method CreateGradient Returns an IVsGradient object on which to draw a gradient of a specified type.
Public method CreateIconImageButton Creates a mixed image/text button using the specified icon as the image.
Public method GetDirectoryViaBrowseDlgEx Brings up the Browse dialog box to obtain a directory name (possibly in a namespace extension).
Public method GetOpenFileNameViaDlgEx Brings up the File Open dialog box to obtain a specified open file.
Public method GetSaveFileNameViaDlgEx Brings up the Save As dialog box to obtain a save file name.
Public method GetVSCursor Returns a handle to a cursor of a specified cursor type.
Public method GetVSSysColorEx Returns the RGB settings for the specified system color used by the environment.
Public method IsAutoRecoverSavingCheckpoints Indicates whether unsaved documents are currently being auto-saved.
Public method SaveItemsViaDlg Handles the saving of one or more documents through the Save changes to following items dialog box.
Public method VsDialogBoxParam Loads and displays the specified dialog template using the specified dialog callback procedure.



This interface provides methods for:

  • Creating buttons that combine images and text.

  • Creating gradients for filling window backgrounds.

  • Obtain system color values.

  • Extended browsing for folders.

  • Extended browsing to open or save files.

  • Handling custom dialog boxes.

Notes to Implementers

Implemented by the environment.

Notes to Callers

Obtain the IVsUIShell2 interface by calling the QueryInterface method in the IVsUIShell interface which in turn is obtained from the SVsUIShell service.

See Also


Microsoft.VisualStudio.Shell.Interop Namespace