Share via


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

'Declaration
Public Overridable Function GetCurrentSelection ( _
    iCombo As Integer, _
    <OutAttribute> ByRef piCurSel As Integer _
) As Integer
public virtual int GetCurrentSelection(
    int iCombo,
    out int piCurSel
)
public:
virtual int GetCurrentSelection(
    [InAttribute] int iCombo, 
    [OutAttribute] int% piCurSel
)
abstract GetCurrentSelection : 
        iCombo:int * 
        piCurSel:int byref -> int 
override GetCurrentSelection : 
        iCombo:int * 
        piCurSel:int byref -> int 
public 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

Implements

IVsDropdownBar.GetCurrentSelection(Int32, Int32%)

.NET Framework Security

See Also

Reference

VsDropdownBarClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace