IVsEditorAdaptersFactoryService::GetBufferAdapter Method (ITextBuffer^)

 

Gets the text buffer adapter for this text buffer (if it exists).

Namespace:   Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

IVsTextBuffer^ GetBufferAdapter(
	ITextBuffer^ textBuffer
)

Parameters

textBuffer
Type: Microsoft.VisualStudio.Text::ITextBuffer^

The text buffer of interest.

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^

The IVsTextBuffer if one exists, or else null.

Exception Condition
ArgumentNullException

textBuffer is null.

Adapters are generally built only for document windows.

Return to top
Show: