IVsDropdownBar.GetCurrentSelection Method

Returns the entry that is currently selected in a given combination.

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

Syntax

'Déclaration
Function GetCurrentSelection ( _
    iCombo As Integer, _
    <OutAttribute> ByRef piCurSel As Integer _
) As Integer
'Utilisation
Dim instance As IVsDropdownBar
Dim iCombo As Integer
Dim piCurSel As Integer
Dim returnValue As Integer

returnValue = instance.GetCurrentSelection(iCombo, _
    piCurSel)
int GetCurrentSelection(
    int iCombo,
    out int piCurSel
)
int GetCurrentSelection(
    [InAttribute] int iCombo, 
    [OutAttribute] int% piCurSel
)
abstract GetCurrentSelection : 
        iCombo:int * 
        piCurSel:int byref -> int 
function GetCurrentSelection(
    iCombo : int, 
    piCurSel : int
) : int

Parameters

  • iCombo
    Type: System.Int32
    [in] The drop-down bar/Window combination.
  • piCurSel
    Type: System.Int32%
    [out] Currently selected item.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Mouse moves change the highlight but not the selection.

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBar::GetCurrentSelection(
   [in] long iCombo,
   [out] long *piCurSel
);

.NET Framework Security

See Also

Reference

IVsDropdownBar Interface

IVsDropdownBar Members

Microsoft.VisualStudio.TextManager.Interop Namespace