ITextEditorFactoryService::CreateTextViewHost Method (IWpfTextView^, Boolean)

 

Creates a host for the text view.

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

IWpfTextViewHost^ CreateTextViewHost(
	IWpfTextView^ wpfTextView,
	bool setFocus
)

Parameters

wpfTextView
Type: Microsoft.VisualStudio.Text.Editor::IWpfTextView^

The text view to host.

setFocus
Type: System::Boolean

true if the IWpfTextViewHost should take focus after it is initialized, false otherwise.

Exception Condition
ArgumentNullException

wpfTextView is null.

Return to top
Show: