VsDropdownBarClass.SetCurrentSelection(Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置给定下拉组合中的当前选定内容。
public:
virtual int SetCurrentSelection(int iCombo, int iNewSelection) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::SetCurrentSelection;
public:
virtual int SetCurrentSelection(int iCombo, int iNewSelection) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::SetCurrentSelection;
virtual int SetCurrentSelection(int iCombo, int iNewSelection);
public virtual int SetCurrentSelection (int iCombo, int iNewSelection);
abstract member SetCurrentSelection : int * int -> int
override this.SetCurrentSelection : int * int -> int
Public Overridable Function SetCurrentSelection (iCombo As Integer, iNewSelection As Integer) As Integer
参数
- iCombo
- Int32
中下拉栏/窗口组合框。
- iNewSelection
- Int32
中新选择的项。
返回
如果该方法成功,则返回 S_OK ; 否则返回错误代码。