Partager via


IVsTextBufferCoordinator.SetBuffers(IVsTextLines, IVsTextLines) Method

Definition

Establishes the primary and secondary buffers that are to be managed by the buffer coordinator object.

public:
 int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer);
public:
 int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer);
int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pSecondaryBuffer);
public int SetBuffers (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pPrimaryBuffer, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pSecondaryBuffer);
abstract member SetBuffers : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Function SetBuffers (pPrimaryBuffer As IVsTextLines, pSecondaryBuffer As IVsTextLines) As Integer

Parameters

pPrimaryBuffer
IVsTextLines

[in] An IVsTextLines object representing the primary buffer.

pSecondaryBuffer
IVsTextLines

[in] An IVsTextLines object representing the secondary buffer.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT SetBuffers(  
   [in] IVsTextLines *pPrimaryBuffer,  
   [in] IVsTextLines *pSecondaryBuffer  
);  

Applies to