Share via


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

  • setFocus
    Type : Boolean

    true 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

Voir aussi

Référence

ITextEditorFactoryService Interface

Microsoft.VisualStudio.Text.Editor, espace de noms