Udostępnij za pośrednictwem


VsTextBufferCoordinatorClass.SetBuffers(IVsTextLines, IVsTextLines) Method

Definition

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

public:
 virtual int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::SetBuffers;
public:
 virtual int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer);
public:
 virtual int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pSecondaryBuffer) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBufferCoordinator::SetBuffers;
 virtual int SetBuffers(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pPrimaryBuffer, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pSecondaryBuffer);
public virtual 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
override this.SetBuffers : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Overridable 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.

Implements

Applies to