IVsEditorAdaptersFactoryService::GetWpfTextViewHost Method (IVsTextView^)
Visual Studio 2015
Gets the text view host of a text view adapter.
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Parameters
- viewAdapter
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextView^
The text view adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text.Editor::IWpfTextViewHost^The IWpfTextViewHost of the adapter.
| Exception | Condition |
|---|---|
| ArgumentNullException | viewAdapter is null. |
| ArgumentException | viewAdapter was not produced by this factory. |
Show: