Partager via


IVsEditorAdaptersFactoryService.GetWpfTextViewHost, méthode

Obtient l'hôte d'affichage de texte d'un adaptateur d'affichage de texte.

Espace de noms :  Microsoft.VisualStudio.Editor
Assembly :  Microsoft.VisualStudio.Editor (dans Microsoft.VisualStudio.Editor.dll)

Syntaxe

'Déclaration
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

Paramètres

  • viewAdapter
    Type : IVsTextView

    Adaptateur de vue de texte concerné.

Valeur de retour

Type : Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
IWpfTextViewHost de l'adaptateur.

Exceptions

Exception Condition
ArgumentNullException

viewAdapter a la valeur nullune référence null (Nothing en Visual Basic).

ArgumentException

viewAdapter n'a pas été produit par cette fabrique.

Sécurité .NET Framework

Voir aussi

Référence

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor, espace de noms