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