IVsEditorAdaptersFactoryService::SetDataBuffer Method (IVsTextBuffer^, ITextBuffer^)

 

Sets the data buffer of a text buffer adapter that is being used together with an IVsTextBufferCoordinator adapter.

Namespace:   Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

void SetDataBuffer(
	IVsTextBuffer^ bufferAdapter,
	ITextBuffer^ dataBuffer
)

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.

Return to top
Show: