IVsTextViewEvents::OnSetBuffer Method (IVsTextView^, IVsTextLines^)
Visual Studio 2015
Notifies a client when a view is attached to a new buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pView
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
[in] Pointer to the IVsTextView interface.
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] Pointer to the IVsTextLines interface.
From textmgr.idl:
HRESULT IVsTextViewEvents::OnSetBuffer( [in] IVsTextView *pView, [in] IVsTextLines *pBuffer );
The reference count is not incremented when you obtain a pointer to IVsTextView and IVsTextLines; if you want to keep it, call AddRef on them explicitly.
Show: