Partager via


IVsEditorAdaptersFactoryService.GetDataBuffer(IVsTextBuffer) Method

Definition

Get the DataBuffer of an IVsTextBuffer adapter (this is the top buffer of the data model buffer graph). This buffer will be the same as the DocumentBuffer except in BufferCoordinator scenarios.

public:
 Microsoft::VisualStudio::Text::ITextBuffer ^ GetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter);
public:
 Microsoft::VisualStudio::Text::ITextBuffer ^ GetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ bufferAdapter);
Microsoft::VisualStudio::Text::ITextBuffer GetDataBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & bufferAdapter);
public Microsoft.VisualStudio.Text.ITextBuffer GetDataBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer bufferAdapter);
public Microsoft.VisualStudio.Text.ITextBuffer? GetDataBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer bufferAdapter);
abstract member GetDataBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function GetDataBuffer (bufferAdapter As IVsTextBuffer) As ITextBuffer

Parameters

bufferAdapter
IVsTextBuffer

The text buffer adapter of interest.

Returns

Null if this method is called before content has been established for the adapter, otherwise the DataBuffer that is presented to the view model.

Exceptions

bufferAdapter is null.

bufferAdapter does not contain VsTextDocData.

Remarks

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

Applies to