IVsTextViewEvents.OnSetFocus(IVsTextView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies a client when a view receives focus.
public:
void OnSetFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView);
public:
void OnSetFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView);
void OnSetFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pView);
public void OnSetFocus (Microsoft.VisualStudio.TextManager.Interop.IVsTextView pView);
abstract member OnSetFocus : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> unit
Public Sub OnSetFocus (pView As IVsTextView)
Parameters
- pView
- IVsTextView
[in] Pointer to the IVsTextView interface.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextViewEvents::OnSetFocus(
[in] IVsTextView *pView
);
The reference count is not incremented when you obtain a pointer to IVsTextView; if you want to keep it, call AddRef on it explicitly.