Partilhar via


IVsTextViewEvents.OnSetBuffer(IVsTextView, IVsTextLines) Method

Definition

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

public:
 void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
public:
 void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pView, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer);
public void OnSetBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextView pView, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer);
abstract member OnSetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> unit
Public Sub OnSetBuffer (pView As IVsTextView, pBuffer As IVsTextLines)

Parameters

pView
IVsTextView

[in] Pointer to the IVsTextView interface.

pBuffer
IVsTextLines

[in] Pointer to the IVsTextLines interface.

Remarks

COM Signature

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.

Applies to