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)

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.

Return to top
Show: