Share via


ITextEditorFactoryService.CreateTextView Method (ITextViewModel, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of the specified view model.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function CreateTextView ( _
    viewModel As ITextViewModel, _
    roles As ITextViewRoleSet, _
    parentOptions As IEditorOptions _
) As IWpfTextView
IWpfTextView CreateTextView(
    ITextViewModel viewModel,
    ITextViewRoleSet roles,
    IEditorOptions parentOptions
)
IWpfTextView^ CreateTextView(
    ITextViewModel^ viewModel, 
    ITextViewRoleSet^ roles, 
    IEditorOptions^ parentOptions
)
abstract CreateTextView : 
        viewModel:ITextViewModel * 
        roles:ITextViewRoleSet * 
        parentOptions:IEditorOptions -> IWpfTextView 
function CreateTextView(
    viewModel : ITextViewModel, 
    roles : ITextViewRoleSet, 
    parentOptions : IEditorOptions
) : IWpfTextView

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextView
An IWpfTextView.

Exceptions

Exception Condition
ArgumentNullException

viewModel or roles or parentOptions is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ITextEditorFactoryService Interface

CreateTextView Overload

Microsoft.VisualStudio.Text.Editor Namespace