IVsTextView.SetBuffer(IVsTextLines) IVsTextView.SetBuffer(IVsTextLines) IVsTextView.SetBuffer(IVsTextLines) IVsTextView.SetBuffer(IVsTextLines) IVsTextView.SetBuffer(IVsTextLines) IVsTextView.SetBuffer(IVsTextLines) Method

Definition

Associates a text buffer with the view.

public:
 int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
public:
 int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer);
public int SetBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer);
abstract member SetBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Function SetBuffer (pBuffer As IVsTextLines) As Integer
Parameters
pBuffer
IVsTextLines IVsTextLines IVsTextLines IVsTextLines IVsTextLines IVsTextLines

[in] Pointer to the text buffer to associate with the view.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::SetBuffer(  
  [in] IVsTextLines *pBuffer  
);  

This method is called by the environment.

Applies to