IVsEditorAdaptersFactoryService::GetViewAdapter Method (ITextView^)

 

Get the IVsTextView adapter for this text view (if it exists).

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

IVsTextView^ GetViewAdapter(
	ITextView^ textView
)

Parameters

textView
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

The text view of interest.

Return Value

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

The text view adapter, or null if no adapter exists.

Exception Condition
ArgumentNullException

textView is null.

Adapters are generally built only for document windows.

Return to top
Show: