次の方法で共有


IVsTextViewEvents.OnSetFocus Method

Notifies a client when a view receives focus.

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

Syntax

'宣言
Sub OnSetFocus ( _
    pView As IVsTextView _
)
'使用
Dim instance As IVsTextViewEvents
Dim pView As IVsTextView

instance.OnSetFocus(pView)
void OnSetFocus(
    IVsTextView pView
)
void OnSetFocus(
    [InAttribute] IVsTextView^ pView
)
abstract OnSetFocus : 
        pView:IVsTextView -> unit 
function OnSetFocus(
    pView : IVsTextView
)

Parameters

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.

.NET Framework Security

See Also

Reference

IVsTextViewEvents Interface

IVsTextViewEvents Members

Microsoft.VisualStudio.TextManager.Interop Namespace