共用方式為


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 命名空間