英語で読む

次の方法で共有


IVsToolWindowToolbarHost2 Interface

Definition

Implemented by the Visual Studio shell, and can be retrieved from the IVsToolWindowToolbarHost that is returned as an out parameter from one of the IVsUIShellX.SetupToolbar() methods. It is used by tool window clients that want to have a toolbar within their window and need to provide a specific drop target for intercepting drag and drop operations over the toolbar area.

C#
public interface IVsToolWindowToolbarHost2
C#
[System.Runtime.InteropServices.Guid("2EFC69A8-5E06-436D-88D5-F099353356DA")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsToolWindowToolbarHost2
Attributes

Methods

AddToolbar2(VSTWT_LOCATION, Guid, UInt32, IDropTarget)

Extends the AddToolbar(VSTWT_LOCATION, Guid, UInt32) method to allow specifying the drop target to handle drop operations over the toolbar area.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022