IVsEditorAdaptersFactoryService.GetDataBuffer(IVsTextBuffer) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- bufferAdapter
- IVsTextBuffer
The text buffer adapter of interest.
Null if this method is called before content has been established for the adapter, otherwise the DataBuffer that is presented to the view model.
bufferAdapter
is null.
bufferAdapter
does not contain VsTextDocData
.
This buffer will be the same as the document buffer, except in buffer coordinator scenarios.