IVsEditorAdaptersFactoryService::GetBufferAdapter Method (ITextBuffer^)
Visual Studio 2015
Gets the text buffer adapter for this text buffer (if it exists).
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
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 null.
| Exception | Condition |
|---|---|
| ArgumentNullException | textBuffer is null. |
Adapters are generally built only for document windows.
Show: