IVsEditorAdaptersFactoryService::CreateVsTextBufferAdapter Method (IServiceProvider^, IContentType^)
Visual Studio 2015
Creates an IVsTextBuffer with the specified IContentType.
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.
Show: