IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapter 方法 (IServiceProvider, IContentType)

创建具有指定 IContentTypeIVsTextBuffer

命名空间:  Microsoft.VisualStudio.Editor
程序集:  Microsoft.VisualStudio.Editor(在 Microsoft.VisualStudio.Editor.dll 中)

语法

声明
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

参数

返回值

类型:IVsTextBuffer
新的 IVsTextBuffer

备注

此操作应将由 InitializeContent初始化的文本缓冲区使用。

.NET Framework 安全性

请参阅

参考

IVsEditorAdaptersFactoryService 接口

CreateVsTextBufferAdapter 重载

Microsoft.VisualStudio.Editor 命名空间