Freigeben über


IVsDropdownBar.SetCurrentSelection-Methode

Legt die aktuelle Auswahl in der Dropdownliste angegebenen Verbindung fest

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Function SetCurrentSelection ( _
    iCombo As Integer, _
    iNewSelection As Integer _
) As Integer
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

Parameter

  • iCombo
    Typ: Int32

    [in] Im Dropdownfeld Kombinationsfeld der Leiste/Fenster.

  • iNewSelection
    Typ: Int32

    [in] Ein neuer ausgewähltes Element.

Rückgabewert

Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie S_OKzurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Von textmgr.idl:

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

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDropdownBar Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace