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 : IVsTextViewAdaptateur 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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.