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
Параметры
serviceProvider
Тип: IServiceProviderIServiceProvider с что к сайту IVsTextBuffer.
contentType
Тип: Microsoft.VisualStudio.Utilities.IContentTypeОбъект IContentType для базового объекта ITextBuffer.
Возвращаемое значение
Тип: IVsTextBuffer
Новый объект IVsTextBuffer.
Заметки
Эта операция предназначена для текстовых буферов, которые инициализируются by InitializeContent.
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Для получения дополнительной информации см. Использование библиотек из не вполне надежного кода.
См. также
Ссылки
IVsEditorAdaptersFactoryService Интерфейс