ITextEditorFactoryService.CreateTextViewHost(IWpfTextView, Boolean) Method

Definition

Creates a host for the text view.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost ^ CreateTextViewHost(Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ wpfTextView, bool setFocus);
public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost ^ CreateTextViewHost(Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ wpfTextView, bool setFocus);
Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost CreateTextViewHost(Microsoft::VisualStudio::Text::Editor::IWpfTextView const & wpfTextView, bool setFocus);
public Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost CreateTextViewHost (Microsoft.VisualStudio.Text.Editor.IWpfTextView wpfTextView, bool setFocus);
abstract member CreateTextViewHost : Microsoft.VisualStudio.Text.Editor.IWpfTextView * bool -> Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
Public Function CreateTextViewHost (wpfTextView As IWpfTextView, setFocus As Boolean) As IWpfTextViewHost

Parameters

wpfTextView
IWpfTextView

The text view to host.

setFocus
Boolean

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

Returns

An IWpfTextViewHost.

Exceptions

wpfTextView is null.

Applies to