次の方法で共有


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
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

Microsoft.VisualStudio.TextManager.Interop Namespace