次の方法で共有


IVsTextViewEvents.OnSetFocus(IVsTextView) Method

Definition

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.

Applies to