다음을 통해 공유


IVsDropdownBarClient.OnItemChosen Method

Fires when a combo item is chosen.

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

Syntax

‘선언
Function OnItemChosen ( _
    iCombo As Integer, _
    iIndex As Integer _
) As Integer
‘사용 방법
Dim instance As IVsDropdownBarClient
Dim iCombo As Integer
Dim iIndex As Integer
Dim returnValue As Integer

returnValue = instance.OnItemChosen(iCombo, _
    iIndex)
int OnItemChosen(
    int iCombo,
    int iIndex
)
int OnItemChosen(
    [InAttribute] int iCombo, 
    [InAttribute] int iIndex
)
abstract OnItemChosen : 
        iCombo:int * 
        iIndex:int -> int 
function OnItemChosen(
    iCombo : int, 
    iIndex : int
) : int

Parameters

  • iCombo
    Type: System.Int32
    [in] The drop-down bar/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 IVsDropdownBarClient::OnItemChosen(
   [in] long iCombo,
   [in] long iIndex
);

.NET Framework Security

See Also

Reference

IVsDropdownBarClient Interface

IVsDropdownBarClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace