Partager via


IVsDropdownBarManager.AddDropdownBar(Int32, IVsDropdownBarClient) Method

Definition

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.

public:
 int AddDropdownBar(int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient ^ pClient);
public:
 int AddDropdownBar(int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient ^ pClient);
int AddDropdownBar(int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient const & pClient);
public int AddDropdownBar (int cCombos, Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient pClient);
abstract member AddDropdownBar : int * Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient -> int
Public Function AddDropdownBar (cCombos As Integer, pClient As IVsDropdownBarClient) As Integer

Parameters

cCombos
Int32

[in] The DropdownBar/Window combo.

pClient
IVsDropdownBarClient

[in] DropdownBar client.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBarManager::AddDropdownBar(  
   [in] long cCombos,  
   [in] IVsDropdownBarClient *pClient  
);  

AddDropdownBar adds a set of combo dropdowns to a code window. This call wraps the call to Attach. If there is already a dropdown bar attached to the code window the call returns E_UNEXPECTED. You should call GetDropdownBar before calling AddDropdownBar to ensure that there isn't already a dropdown bar associated with the given code window.

Applies to