IVsEditorAdaptersFactoryService.GetDataBuffer Method (IVsTextBuffer)

 

Get the data buffer of a text buffer adapter. This is the top buffer of the data model buffer graph.

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

ITextBuffer GetDataBuffer(
	IVsTextBuffer bufferAdapter
)

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.

Return to top
Show: