IVsEditorAdaptersFactoryService::GetDocumentBuffer Method (IVsTextBuffer^)
Visual Studio 2015
Gets the document buffer of an IVsTextBuffer adapter. This is the bottom buffer of the data model buffer graph.
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Parameters
- bufferAdapter
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
The text buffer adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text::ITextBuffer^The ITextBuffer document buffer that is presented to the view model, or null if this method is called before content has been established for the adapter.
| Exception | Condition |
|---|---|
| ArgumentNullException | bufferAdapter is null. |
| ArgumentException | bufferAdapter was not produced by this factory. |
This buffer will be the same as the data buffer, except in buffer coordinator scenarios.
Show: