共用方式為


IVsEditorAdaptersFactoryService.CreateVsTextBufferAdapterForSecondaryBuffer Method

Creates an IVsTextBuffer for the secondary buffer (used in IVsTextBufferCoordinator) for the specified ITextBuffer.

Namespace:  Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

Syntax

'宣告
Function CreateVsTextBufferAdapterForSecondaryBuffer ( _
    serviceProvider As IServiceProvider, _
    secondaryBuffer As ITextBuffer _
) As IVsTextBuffer
IVsTextBuffer CreateVsTextBufferAdapterForSecondaryBuffer(
    IServiceProvider serviceProvider,
    ITextBuffer secondaryBuffer
)
IVsTextBuffer^ CreateVsTextBufferAdapterForSecondaryBuffer(
    IServiceProvider^ serviceProvider, 
    ITextBuffer^ secondaryBuffer
)
abstract CreateVsTextBufferAdapterForSecondaryBuffer : 
        serviceProvider:IServiceProvider * 
        secondaryBuffer:ITextBuffer -> IVsTextBuffer 
function CreateVsTextBufferAdapterForSecondaryBuffer(
    serviceProvider : IServiceProvider, 
    secondaryBuffer : ITextBuffer
) : IVsTextBuffer

Parameters

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The new IVsTextBuffer.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace