다음을 통해 공유


IVsDropdownBarManager.AddDropdownBar Method

Adds a set of combo drop-downs to a code window.

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

Syntax

‘선언
Function AddDropdownBar ( _
    cCombos As Integer, _
    pClient As IVsDropdownBarClient _
) As Integer
‘사용 방법
Dim instance As IVsDropdownBarManager
Dim cCombos As Integer
Dim pClient As IVsDropdownBarClient
Dim returnValue As Integer

returnValue = instance.AddDropdownBar(cCombos, _
    pClient)
int AddDropdownBar(
    int cCombos,
    IVsDropdownBarClient pClient
)
int AddDropdownBar(
    [InAttribute] int cCombos, 
    [InAttribute] IVsDropdownBarClient^ pClient
)
abstract AddDropdownBar : 
        cCombos:int * 
        pClient:IVsDropdownBarClient -> int 
function AddDropdownBar(
    cCombos : int, 
    pClient : IVsDropdownBarClient
) : int

Parameters

  • cCombos
    Type: System.Int32
    [in] The DropdownBar/Window combo.

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsDropdownBarManager Interface

IVsDropdownBarManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace