IVsTextView.SetBuffer(IVsTextLines) Method
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:
int SetBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer);
C++/CX
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
- pBuffer
- IVsTextLines
[in] Pointer to the text buffer to associate with the view.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextView::SetBuffer(
[in] IVsTextLines *pBuffer
);
This method is called by the environment.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |