ITextEditorFactoryService.CreateTextViewHost(IWpfTextView, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.