ITextEditorFactoryService::CreateTextView Method (ITextViewModel^, ITextViewRoleSet^, IEditorOptions^)
Visual Studio 2015
Creates an IWpfTextView that displays the contents of the specified view model.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
IWpfTextView^ CreateTextView( ITextViewModel^ viewModel, ITextViewRoleSet^ roles, IEditorOptions^ parentOptions )
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | viewModel or roles or parentOptions is null. |
Show: