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
'Dichiarazione
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
- viewModel
Type: Microsoft.VisualStudio.Text.Editor.ITextViewModel
The ITextViewModel that provides the text buffers for the view.
- roles
Type: Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
The set of roles filled by the view.
- parentOptions
Type: Microsoft.VisualStudio.Text.Editor.IEditorOptions
The options environment for the text view.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.