Partager via


IVsTextBufferCoordinator.GetPrimaryBuffer(IVsTextLines) Method

Definition

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  
);  

Applies to