Sets the current selection in the given drop-down combination.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Public Overridable Function SetCurrentSelection ( _
iCombo As Integer, _
iNewSelection As Integer _
) As Integer
'使用
Dim instance As VsDropdownBarClass
Dim iCombo As Integer
Dim iNewSelection As Integer
Dim returnValue As Integer
returnValue = instance.SetCurrentSelection(iCombo, _
iNewSelection)
public virtual int SetCurrentSelection(
int iCombo,
int iNewSelection
)
public:
virtual int SetCurrentSelection(
[InAttribute] int iCombo,
[InAttribute] int iNewSelection
)
public function SetCurrentSelection(
iCombo : int,
iNewSelection : int
) : int
Parameters
iCombo
Type: System.Int32[in] The drop-down bar/Window combo.
iNewSelection
Type: System.Int32[in] New selected item.
Return Value
Type: System.Int32
Implements
IVsDropdownBar.SetCurrentSelection(Int32, Int32)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.