Share via


VsDropdownBarClass.GetCurrentSelection(Int32, Int32) Method

Definition

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

public:
 virtual int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int % piCurSel) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::GetCurrentSelection;
public:
 virtual int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int % piCurSel);
 virtual int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int & piCurSel);
public virtual int GetCurrentSelection (int iCombo, out int piCurSel);
abstract member GetCurrentSelection : int * int -> int
override this.GetCurrentSelection : int * int -> int
Public Overridable Function GetCurrentSelection (iCombo As Integer, ByRef piCurSel As Integer) As Integer

Parameters

iCombo
Int32

[in] The drop-down bar/Window combination.

piCurSel
Int32

[out] Currently selected item.

Returns

If the method succeeds, it returns S_OK; otherwise, it returns an error code.

Implements

Applies to