IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapterForSecondaryBuffer Method

Definition

Create an IVsTextBuffer for the SecondaryBuffer (used in BufferCoordinator) given an ITextBuffer

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapterForSecondaryBuffer(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Text::ITextBuffer ^ secondaryBuffer);
public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapterForSecondaryBuffer(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Text::ITextBuffer ^ secondaryBuffer);
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer CreateVsTextBufferAdapterForSecondaryBuffer(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & serviceProvider, Microsoft::VisualStudio::Text::ITextBuffer const & secondaryBuffer);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer CreateVsTextBufferAdapterForSecondaryBuffer (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider, Microsoft.VisualStudio.Text.ITextBuffer secondaryBuffer);
abstract member CreateVsTextBufferAdapterForSecondaryBuffer : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
Public Function CreateVsTextBufferAdapterForSecondaryBuffer (serviceProvider As IServiceProvider, secondaryBuffer As ITextBuffer) As IVsTextBuffer

Parameters

serviceProvider
IServiceProvider

The IServiceProvider with which to site the IVsTextBuffer.

secondaryBuffer
ITextBuffer

The ITextBuffer with which to create the IVsTextBuffer.

Returns

The new IVsTextBuffer.

Exceptions

secondaryBuffer is null.

Applies to