IVsEditorAdaptersFactoryService::GetDataBuffer Method (IVsTextBuffer^)
Visual Studio 2015
Get the data buffer of a text buffer adapter. This is the top 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 IVsTextBuffer adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text::ITextBuffer^The ITextBuffer data 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 document buffer, except in buffer coordinator scenarios.
Show: