IVsEditorAdaptersFactoryService.GetDocumentBuffer(IVsTextBuffer) IVsEditorAdaptersFactoryService.GetDocumentBuffer(IVsTextBuffer) IVsEditorAdaptersFactoryService.GetDocumentBuffer(IVsTextBuffer) Method

Definition

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

public Microsoft.VisualStudio.Text.ITextBuffer GetDocumentBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer bufferAdapter);
abstract member GetDocumentBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function GetDocumentBuffer (bufferAdapter As IVsTextBuffer) As ITextBuffer
Parameters
bufferAdapter
IVsTextBuffer IVsTextBuffer IVsTextBuffer

The text buffer adapter of interest.

Returns

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.

Exceptions

bufferAdapter was not produced by this factory.

Remarks

This buffer will be the same as the data buffer, except in buffer coordinator scenarios.

Applies to