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)
Syntax
'Declaration
Function CreateVsTextBufferAdapter ( _
serviceProvider As IServiceProvider, _
contentType As IContentType _
) As IVsTextBuffer
IVsTextBuffer CreateVsTextBufferAdapter(
IServiceProvider serviceProvider,
IContentType contentType
)
IVsTextBuffer^ CreateVsTextBufferAdapter(
IServiceProvider^ serviceProvider,
IContentType^ contentType
)
abstract CreateVsTextBufferAdapter :
serviceProvider:IServiceProvider *
contentType:IContentType -> IVsTextBuffer
function CreateVsTextBufferAdapter(
serviceProvider : IServiceProvider,
contentType : IContentType
) : IVsTextBuffer
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.
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The new IVsTextBuffer.
Remarks
This operation is intended for text buffers that will be initialized by InitializeContent.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsEditorAdaptersFactoryService Interface