IVsDropdownBar.SetCurrentSelection Method

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

'Déclaration
Function SetCurrentSelection ( _
    iCombo As Integer, _
    iNewSelection As Integer _
) As Integer
'Utilisation
Dim instance As IVsDropdownBar
Dim iCombo As Integer
Dim iNewSelection As Integer
Dim returnValue As Integer

returnValue = instance.SetCurrentSelection(iCombo, _
    iNewSelection)
int SetCurrentSelection(
    int iCombo,
    int iNewSelection
)
int SetCurrentSelection(
    [InAttribute] int iCombo, 
    [InAttribute] int iNewSelection
)
abstract SetCurrentSelection : 
        iCombo:int * 
        iNewSelection:int -> int 
function SetCurrentSelection(
    iCombo : int, 
    iNewSelection : int
) : int

Parameters

  • iCombo
    Type: System.Int32
    [in] The drop-down bar/Window combo.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBar::SetCurrentSelection(
   [in] long iCombo,
   [in] long iNewSelection
);

.NET Framework Security

See Also

Reference

IVsDropdownBar Interface

IVsDropdownBar Members

Microsoft.VisualStudio.TextManager.Interop Namespace