ITextEditorFactoryService.CreateTextViewHost(IWpfTextView, Boolean) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Erstellt einen Host für die Textansicht.
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
Parameter
- wpfTextView
- IWpfTextView
Die zu hostende Textansicht.
- setFocus
- Boolean
true , wenn der IWpfTextViewHost nach der Initialisierung den Fokus erhalten soll, andernfalls false .
Gibt zurück
Ausnahmen
wpfTextView ist NULL.