IVsTextViewEvents::OnSetBuffer Method (IVsTextView^, IVsTextLines^)

 

Notifies a client when a view is attached to a new buffer.

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

void OnSetBuffer(
	IVsTextView^ pView,
	IVsTextLines^ pBuffer
)

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.

Return to top
Show: