Ler em inglês

Compartilhar via


IVsEditorAdaptersFactoryService.GetWpfTextViewHost Method

Gets the text view host of a text view adapter.

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

Syntax

IWpfTextViewHost GetWpfTextViewHost(
    IVsTextView viewAdapter
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
The IWpfTextViewHost of the adapter.

Exceptions

Exception Condition
ArgumentNullException

viewAdapter is nulla null reference (Nothing in Visual Basic).

ArgumentException

viewAdapter was not produced by this factory.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace