IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapter Method

Definition

Overloads

CreateVsTextBufferAdapter(IServiceProvider)

Create an IVsTextBuffer.

CreateVsTextBufferAdapter(IServiceProvider, IContentType)

Create an IVsTextBuffer with a specified content type.

CreateVsTextBufferAdapter(IServiceProvider)

Create an IVsTextBuffer.

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider);
public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider);
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & serviceProvider);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer CreateVsTextBufferAdapter (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
abstract member CreateVsTextBufferAdapter : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
Public Function CreateVsTextBufferAdapter (serviceProvider As IServiceProvider) As IVsTextBuffer

Parameters

serviceProvider
IServiceProvider

The IServiceProvider with which to site the IVsTextBuffer.

Returns

The new IVsTextBuffer.

Exceptions

serviceProvider is null.

Applies to

CreateVsTextBufferAdapter(IServiceProvider, IContentType)

Create an IVsTextBuffer with a specified content type.

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer CreateVsTextBufferAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & serviceProvider, Microsoft::VisualStudio::Utilities::IContentType const & contentType);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer CreateVsTextBufferAdapter (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateVsTextBufferAdapter : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
Public Function CreateVsTextBufferAdapter (serviceProvider As IServiceProvider, contentType As IContentType) As IVsTextBuffer

Parameters

serviceProvider
IServiceProvider

The IServiceProvider with which to site the IVsTextBuffer.

contentType
IContentType

The IContentType for the underlying ITextBuffer.

Returns

The new IVsTextBuffer.

Exceptions

serviceProvider is null.

Remarks

This operation is intended for text buffers that will be initialized by IVsTextBuffer.InitializeContent.

Applies to