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
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The text buffer of interest.
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
The IVsTextBuffer if one exists; otherwise, nulla null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textBuffer is nulla null reference (Nothing in Visual Basic). |
Remarks
Adapters are typically built only for document windows.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.