IVsEditorAdaptersFactoryService.GetBufferAdapter(ITextBuffer) Method
Definition
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 IVsTextBuffer adapter for this text buffer (if it exists).
public:
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ GetBufferAdapter(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ GetBufferAdapter(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer GetBufferAdapter(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer GetBufferAdapter (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer? GetBufferAdapter (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetBufferAdapter : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
Public Function GetBufferAdapter (textBuffer As ITextBuffer) As IVsTextBuffer
Parameters
- textBuffer
- ITextBuffer
The text buffer of interest.
Returns
Null if no adapter exists, or else the adapter.
Exceptions
textBuffer is null.
Remarks
Adapters are generally built only for document windows.