VsDropdownBarClass.SetCurrentSelection 方法

将给定下拉组合的当前选择。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Public Overridable Function SetCurrentSelection ( _
    iCombo As Integer, _
    iNewSelection As Integer _
) As Integer
public virtual int SetCurrentSelection(
    int iCombo,
    int iNewSelection
)
public:
virtual int SetCurrentSelection(
    [InAttribute] int iCombo, 
    [InAttribute] int iNewSelection
)
abstract SetCurrentSelection : 
        iCombo:int * 
        iNewSelection:int -> int  
override SetCurrentSelection : 
        iCombo:int * 
        iNewSelection:int -> int
public function SetCurrentSelection(
    iCombo : int, 
    iNewSelection : int
) : int

参数

  • iCombo
    类型:Int32

    [in] 组合下拉栏/的窗口。

  • iNewSelection
    类型:Int32

    [in] 新选定的项。

返回值

类型:Int32

实现

IVsDropdownBar.SetCurrentSelection(Int32, Int32)

.NET Framework 安全性

请参阅

参考

VsDropdownBarClass 类

Microsoft.VisualStudio.TextManager.Interop 命名空间