IVsTextBufferCoordinator.GetPrimaryBuffer(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.
Returns the primary language buffer.
public:
int GetPrimaryBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ % ppBuffer);
public:
int GetPrimaryBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ & ppBuffer);
int GetPrimaryBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & & ppBuffer);
public int GetPrimaryBuffer (out Microsoft.VisualStudio.TextManager.Interop.IVsTextLines ppBuffer);
abstract member GetPrimaryBuffer : IVsTextLines -> int
Public Function GetPrimaryBuffer (ByRef ppBuffer As IVsTextLines) As Integer
Parameters
- ppBuffer
- IVsTextLines
[out] Returns an IVsTextLines object that represents the primary buffer.
Returns
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT GetPrimaryBuffer(
[out] IVsTextLines **ppBuffer
);