IVsEditorAdaptersFactoryService::SetDataBuffer Method (IVsTextBuffer^, ITextBuffer^)
Visual Studio 2015
Sets the data buffer of a text buffer adapter that is being used together with an IVsTextBufferCoordinator adapter.
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Parameters
- bufferAdapter
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
The buffer adapter of interest.
- dataBuffer
-
Type:
Microsoft.VisualStudio.Text::ITextBuffer^
The new data buffer.
| Exception | Condition |
|---|---|
| ArgumentNullException | bufferAdapter is null or dataBuffer is null. |
| ArgumentException | bufferAdapter was not produced by this factory. |
Show: