Freigeben über


VsCodeWindowClass.SetBuffer(IVsTextLines) Method

Definition

Sets the text buffer for all views in the code window.

public:
 virtual int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow::SetBuffer;
public:
 virtual int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
public:
 virtual int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsCodeWindow::SetBuffer;
 virtual int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer);
public virtual int SetBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer);
abstract member SetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
override this.SetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Overridable Function SetBuffer (pBuffer As IVsTextLines) As Integer

Parameters

pBuffer
IVsTextLines

[in] Pointer to the IVsTextLines interface of the text buffer to set.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to