IVsEditorAdaptersFactoryService.SetDataBuffer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the DataBuffer of an IVsTextBuffer adapter that is being used together with an IVsTextBufferCoordinator adapter.
public:
void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer ^ dataBuffer);
public:
void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer ^ dataBuffer);
void SetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & bufferAdapter, Microsoft::VisualStudio::Text::ITextBuffer const & dataBuffer);
public void SetDataBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer bufferAdapter, Microsoft.VisualStudio.Text.ITextBuffer dataBuffer);
abstract member SetDataBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * Microsoft.VisualStudio.Text.ITextBuffer -> unit
Public Sub SetDataBuffer (bufferAdapter As IVsTextBuffer, dataBuffer As ITextBuffer)
Parameters
- bufferAdapter
- IVsTextBuffer
The buffer adapter of interest.
- dataBuffer
- ITextBuffer
The new data buffer.
Exceptions
dataBuffer
is null.
bufferAdapter
does not contain VsTextDocData
.