Partilhar via


Método IVsDropdownBar.GetCurrentSelection

Retorna a entrada selecionada no momento em que uma determinada combinação.

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

Sintaxe

'Declaração
Function GetCurrentSelection ( _
    iCombo As Integer, _
    <OutAttribute> ByRef piCurSel As Integer _
) As Integer
int GetCurrentSelection(
    int iCombo,
    out int piCurSel
)
int GetCurrentSelection(
    [InAttribute] int iCombo, 
    [OutAttribute] int% piCurSel
)
abstract GetCurrentSelection : 
        iCombo:int * 
        piCurSel:int byref -> int
function GetCurrentSelection(
    iCombo : int, 
    piCurSel : int
) : int

Parâmetros

  • iCombo
    Tipo: Int32

    [in] A barra de menu suspenso / combinação da janela.

  • piCurSel
    Tipo: Int32%

    [out] Item atualmente selecionado.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

Mouse move altera o realce, mas não a seleção.

COM assinatura

De textmgr.idl:

HRESULT IVsDropdownBar::GetCurrentSelection(
   [in] long iCombo,
   [out] long *piCurSel
);

Segurança do .NET Framework

Consulte também

Referência

IVsDropdownBar Interface

Namespace Microsoft.VisualStudio.TextManager.Interop