VsDropdownBarClass.GetCurrentSelection(Int32, Int32) 方法

定义

返回以给定组合的当前选定的项。

public:
 virtual int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int % piCurSel) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::GetCurrentSelection;
 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

参数

iCombo
Int32

中下拉栏/窗口组合。

piCurSel
Int32

弄当前选定的项。

返回

Int32

如果该方法成功,则返回 S_OK ; 否则返回错误代码。

实现

适用于