Export (0) Print
Expand All

IVsEditorAdaptersFactoryService.GetViewAdapter Method

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.

ExceptionCondition
ArgumentNullException

textView is null.

Adapters are generally built only for document windows.

Show:
© 2014 Microsoft