Compartilhar via


ViewFilter.OnSetBuffer(IVsTextView, IVsTextLines) Method

Definition

Called when the buffer of lines is being set or changed in the given view.

public:
 virtual void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer);
public:
 virtual void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer);
 virtual void OnSetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & buffer);
public virtual void OnSetBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines buffer);
abstract member OnSetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> unit
override this.OnSetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> unit
Public Overridable Sub OnSetBuffer (view As IVsTextView, buffer As IVsTextLines)

Parameters

view
IVsTextView

[in] An IVsTextView object representing the view whose buffer is being changed.

buffer
IVsTextLines

[in] An IVsTextLines object representing the new buffer.

Implements

Remarks

If your language service needs to respond to a buffer being changed, then you must derive a class from the ViewFilter class and override this method.

This method is an implementation of the OnSetBuffer method on the IVsTextViewEvents interface.

The base method does nothing. In debug mode, the base method does assert that the new buffer is the same as the buffer in the Source object obtained from the CodeWindowManager object that was passed to the ViewFilter class constructor.

Applies to