Condividi tramite


Metodo ITextEditorFactoryService.CreateTextViewHost

Crea un host per la visualizzazione di testo.

Spazio dei nomi:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Sintassi

'Dichiarazione
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

Parametri

  • setFocus
    Tipo: Boolean

    true se IWpfTextViewHost deve avere lo stato attivo dopo che è stata inizializzata, false in caso contrario.

Valore restituito

Tipo: Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
IWpfTextViewHost .

Eccezioni

Eccezione Condizione
ArgumentNullException

wpfTextView viene nullriferimento null (Nothing in Visual Basic).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ITextEditorFactoryService Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Text.Editor