共用方式為


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

'宣告
Function GetWpfTextViewHost ( _
    viewAdapter As IVsTextView _
) As IWpfTextViewHost
IWpfTextViewHost GetWpfTextViewHost(
    IVsTextView viewAdapter
)
IWpfTextViewHost^ GetWpfTextViewHost(
    IVsTextView^ viewAdapter
)
abstract GetWpfTextViewHost : 
        viewAdapter:IVsTextView -> IWpfTextViewHost 
function GetWpfTextViewHost(
    viewAdapter : IVsTextView
) : IWpfTextViewHost

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