IVsCodeWindow::GetBuffer Method (IVsTextLines^)
Visual Studio 2015
Returns the buffer used by all views in the code window.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- ppBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[out] Pointer to the text buffer object (IVsTextLines interface).
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method returns a pointer to the IVsTextLines interface representing the text buffer. If you access the text buffer through stream coordinates, rather than line and index coordinates, you can call QueryInterface from IVsTextLines to return a pointer to IVsTextStream.
From textmgr.idl:
HRESULT IVsCodeWindow::GetBuffer( [out] IVsTextLines **ppBuffer );
Show: