Export (0) Print
Expand All

IVsEditorAdaptersFactoryService.GetDocumentBuffer Method

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.

ExceptionCondition
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.

Show:
© 2015 Microsoft