VsTextViewClass.SetBuffer(IVsTextLines) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Associates a text buffer with the view.
public:
virtual int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::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::IVsTextView::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 text buffer to associate with the view.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.