共用方式為


IVsToolWindowToolbarHost Interface

Provides control over features pertaining to a tool window toolbar.

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

Syntax

'Declaration
<GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsToolWindowToolbarHost
[GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")]
[InterfaceTypeAttribute()]
public interface IVsToolWindowToolbarHost
[GuidAttribute(L"CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")]
[InterfaceTypeAttribute()]
public interface class IVsToolWindowToolbarHost
[<GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")>]
[<InterfaceTypeAttribute()>]
type IVsToolWindowToolbarHost =  interface end
public interface IVsToolWindowToolbarHost

The IVsToolWindowToolbarHost type exposes the following members.

Methods

  Name Description
Public method AddToolbar Adds a toolbar to the tool window.
Public method BorderChanged This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method Close This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method ForceUpdateUI This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method Hide This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method ProcessMouseActivation This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method ProcessMouseActivationModal This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method Show This method is for the environment's use only. Method information is not provided. Do not use this method.
Public method ShowHideToolbar This method is for the environment's use only. Method information is not provided. Do not use this method.

Top

Remarks

This interface is implemented by the environment in response to a VSPackage creating a tool window using CreateToolWindow with a CTW_fToolbarHost flag. The environment creates an IVsToolWindowToolbar interface then makes available an IVsToolWindowToolbarHost interface that is accessible to the VSPackage. The VSPackage accesses the IVsToolWindowToolbarHost interface by calling GetProperty on the tool window with the VSFPROPID_ToolbarHost property parameter.

The AddToolbar method is the only IVsToolWindowToolbarHost method that should be called by a VSPackage. The environment calls the other methods to respond to user interaction with the tool window.

Notes to Implementers

This interface is implemented by the environment to give a VSPackage control over its tool window toolbars.

Notes to Callers

Called by VSPackages should call this interface when they need to exercise control over tool window toolbars.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace