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
'Declaração
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, 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
- 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.