Поделиться через


IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapter - метод (IServiceProvider, IContentType)

Создает объект IVsTextBuffer с указанным свойством IContentType.

Пространство имен:  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.

Заметки

Эта операция предназначена для текстовых буферов, которые инициализируются by InitializeContent.

Безопасность платформы .NET Framework

См. также

Ссылки

IVsEditorAdaptersFactoryService Интерфейс

CreateVsTextBufferAdapter - перегрузка

Microsoft.VisualStudio.Editor - пространство имен