Partilhar via


Método IVsCodeWindow.GetLastActiveView

Retorna o último modo de exibição ativo da janela de código.

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

Sintaxe

'Declaração
Function GetLastActiveView ( _
    <OutAttribute> ByRef ppView As IVsTextView _
) As Integer
int GetLastActiveView(
    out IVsTextView ppView
)
int GetLastActiveView(
    [OutAttribute] IVsTextView^% ppView
)
abstract GetLastActiveView : 
        ppView:IVsTextView byref -> int
function GetLastActiveView(
    ppView : IVsTextView
) : int

Parâmetros

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

Use esse método para retornar a última exibição com foco.

COM assinatura

De textmgr.idl:

HRESULT IVsCodeWindow::GetLastActiveView(
   [out] IVsTextView **ppView
);

Segurança do .NET Framework

Consulte também

Referência

IVsCodeWindow Interface

Namespace Microsoft.VisualStudio.TextManager.Interop