Share via


ITextEditorFactoryService.CreateTextView, méthode (ITextBuffer)

Crée IWpfTextView qui affiche le contenu de la mémoire tampon de texte spécifiée.

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

Syntaxe

'Déclaration
Function CreateTextView ( _
    textBuffer As ITextBuffer _
) As IWpfTextView
IWpfTextView CreateTextView(
    ITextBuffer textBuffer
)
IWpfTextView^ CreateTextView(
    ITextBuffer^ textBuffer
)
abstract CreateTextView : 
        textBuffer:ITextBuffer -> IWpfTextView
function CreateTextView(
    textBuffer : ITextBuffer
) : IWpfTextView

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Editor.IWpfTextView
Élément IWpfTextView disposant de tous les rôles d'affichage de texte prédéfinis.

Exceptions

Exception Condition
ArgumentNullException

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

Notes

ITextBuffer peut être affiché dans de plusieurs vues. ITextDataModel trivial est construit, et ITextViewModel est construit selon IContentType d'textBuffer.

Sécurité .NET Framework

Voir aussi

Référence

ITextEditorFactoryService Interface

CreateTextView, surcharge

Microsoft.VisualStudio.Text.Editor, espace de noms