IVsEditorAdaptersFactoryService::GetDocumentBuffer Method (IVsTextBuffer^)

 

Gets the document buffer of an IVsTextBuffer adapter. This is the bottom buffer of the data model buffer graph.

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

ITextBuffer^ GetDocumentBuffer(
	IVsTextBuffer^ bufferAdapter
)

Parameters

bufferAdapter
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^

The text buffer adapter of interest.

Return Value

Type: Microsoft.VisualStudio.Text::ITextBuffer^

The ITextBuffer document 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 data buffer, except in buffer coordinator scenarios.

Return to top
Show: