Share via


IVsEditorAdaptersFactoryService.GetBufferAdapter Method

Gets the text buffer adapter for this text buffer (if it exists).

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

Syntax

'Declaration
Function GetBufferAdapter ( _
    textBuffer As ITextBuffer _
) As IVsTextBuffer
IVsTextBuffer GetBufferAdapter(
    ITextBuffer textBuffer
)
IVsTextBuffer^ GetBufferAdapter(
    ITextBuffer^ textBuffer
)
abstract GetBufferAdapter : 
        textBuffer:ITextBuffer -> IVsTextBuffer
function GetBufferAdapter(
    textBuffer : ITextBuffer
) : IVsTextBuffer

Parameters

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The IVsTextBuffer if one exists, or else nulla null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

textBuffer is nulla null reference (Nothing in Visual Basic).

Remarks

Adapters are generally built only for document windows.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace