IVsTextBufferCoordinator::SetBuffers Method (IVsTextLines^, IVsTextLines^)

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int SetBuffers(
	IVsTextLines^ pPrimaryBuffer,
	IVsTextLines^ pSecondaryBuffer
)

Parameters

pPrimaryBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

[in] An IVsTextLines object representing the primary buffer.

pSecondaryBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

[in] An IVsTextLines object representing the secondary buffer.

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

HRESULT SetBuffers(
   [in] IVsTextLines *pPrimaryBuffer,
   [in] IVsTextLines *pSecondaryBuffer
);
Return to top
Show: