Share via


ITextEditorFactoryService.CreateTextView, méthode (ITextBuffer, ITextViewRoleSet, IEditorOptions)

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, _
    roles As ITextViewRoleSet, _
    parentOptions As IEditorOptions _
) As IWpfTextView
IWpfTextView CreateTextView(
    ITextBuffer textBuffer,
    ITextViewRoleSet roles,
    IEditorOptions parentOptions
)
IWpfTextView^ CreateTextView(
    ITextBuffer^ textBuffer, 
    ITextViewRoleSet^ roles, 
    IEditorOptions^ parentOptions
)
abstract CreateTextView : 
        textBuffer:ITextBuffer * 
        roles:ITextViewRoleSet * 
        parentOptions:IEditorOptions -> IWpfTextView
function CreateTextView(
    textBuffer : ITextBuffer, 
    roles : ITextViewRoleSet, 
    parentOptions : IEditorOptions
) : IWpfTextView

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Editor.IWpfTextView
Élément IWpfTextView.

Exceptions

Exception Condition
ArgumentNullException

textBuffer ou roles ou parentOptions est null.

Notes

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

Sécurité .NET Framework

Voir aussi

Référence

ITextEditorFactoryService Interface

CreateTextView, surcharge

Microsoft.VisualStudio.Text.Editor, espace de noms