IVsEditorAdaptersFactoryService::CreateVsTextBufferAdapter Method (IServiceProvider^, IContentType^)

 

Creates an IVsTextBuffer with the specified IContentType.

Namespace:   Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

IVsTextBuffer^ CreateVsTextBufferAdapter(
	IServiceProvider^ serviceProvider,
	IContentType^ contentType
)

Parameters

serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

The IServiceProvider with which to site the IVsTextBuffer.

contentType
Type: Microsoft.VisualStudio.Utilities::IContentType^

The IContentType for the underlying ITextBuffer.

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

Return to top
Show: