IVsDropdownBarManager Interface

 

Manages drop-down bars in code windows.

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

[InterfaceTypeAttribute(1)]
[GuidAttribute("5CCB1170-6527-4D88-BE3E-198F0EF5538D")]
public interface IVsDropdownBarManager

NameDescription
System_CAPS_pubmethodAddDropdownBar(Int32, IVsDropdownBarClient)

Allows you to add a set of combo dropdowns to a code window. This call wraps the call to IVsDropdownBar::Attach. If there is already a dropdown bar attached to the code window it returns E_UNEXPECTED. In general you should call GetDropdownBar first before calling AddDropdownBar to make sure there isn't already a dropdown bar associated with the given code window.

System_CAPS_pubmethodGetDropdownBar(IVsDropdownBar)

Returns the dropdown bar associated with the code window, if any. If there is one, it returns S_OK and sends back a pointer to it. If there isn't one, it returns null.

System_CAPS_pubmethodRemoveDropdownBar()

Removes a drop-down bar from a code window.

IVsDropdownBarManager is used to create and destroy the drop-down bar for a given code window. IVsDropdownBarManager can also be used to determine whether a drop-down bar is already attached.

Notes to Implementers:

You can obtain IVsDropdownBarManager from IVsCodeWindow.

Return to top
Show: