Compartir a través de


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

'Declaración
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

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

See Also

Reference

IVsEditorAdaptersFactoryService Interface

CreateVsTextBufferAdapter Overload

Microsoft.VisualStudio.Editor Namespace