ITextEditorFactoryService.CreateTextViewHost, méthode
Crée un hôte pour l'affichage de texte.
Espace de noms : Microsoft.VisualStudio.Text.Editor
Assembly : Microsoft.VisualStudio.Text.UI.Wpf (dans Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntaxe
'Déclaration
Function CreateTextViewHost ( _
wpfTextView As IWpfTextView, _
setFocus As Boolean _
) As IWpfTextViewHost
IWpfTextViewHost CreateTextViewHost(
IWpfTextView wpfTextView,
bool setFocus
)
IWpfTextViewHost^ CreateTextViewHost(
IWpfTextView^ wpfTextView,
bool setFocus
)
abstract CreateTextViewHost :
wpfTextView:IWpfTextView *
setFocus:bool -> IWpfTextViewHost
function CreateTextViewHost(
wpfTextView : IWpfTextView,
setFocus : boolean
) : IWpfTextViewHost
Paramètres
wpfTextView
Type : Microsoft.VisualStudio.Text.Editor.IWpfTextViewAffichage de texte à héberger.
setFocus
Type : Booleantrue si IWpfTextViewHost doit devenir actif après son initialisation ; sinon, false.
Valeur de retour
Type : Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
Élément IWpfTextViewHost.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | wpfTextView a la valeur nullune référence null (Nothing en Visual Basic). |
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.