Compartir a través de


IVsCodeWindow.GetLastActiveView(IVsTextView) Method

Definition

Returns the last active view of the code window.

public:
 int GetLastActiveView([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ % ppView);
public:
 int GetLastActiveView([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ &  ppView);
int GetLastActiveView([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & & ppView);
public int GetLastActiveView (out Microsoft.VisualStudio.TextManager.Interop.IVsTextView ppView);
abstract member GetLastActiveView : IVsTextView -> int
Public Function GetLastActiveView (ByRef ppView As IVsTextView) As Integer

Parameters

ppView
IVsTextView

[out] Pointer to the IVsTextView interface that represents the last active view.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Use this method to return the last view with focus.

COM Signature

From textmgr.idl:

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

Applies to