Share via


IVsEditorAdaptersFactoryService.GetBufferAdapter(ITextBuffer) Method

Definition

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.

Applies to