다음을 통해 공유


IVsEditorAdaptersFactoryService.GetWpfTextViewHost(IVsTextView) Method

Definition

Get the WpfTextViewHost of an IVsTextView adapter.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost ^ GetWpfTextViewHost(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ viewAdapter);
public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost ^ GetWpfTextViewHost(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ viewAdapter);
Microsoft::VisualStudio::Text::Editor::IWpfTextViewHost GetWpfTextViewHost(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & viewAdapter);
public Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost GetWpfTextViewHost (Microsoft.VisualStudio.TextManager.Interop.IVsTextView viewAdapter);
public Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost? GetWpfTextViewHost (Microsoft.VisualStudio.TextManager.Interop.IVsTextView viewAdapter);
abstract member GetWpfTextViewHost : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
Public Function GetWpfTextViewHost (viewAdapter As IVsTextView) As IWpfTextViewHost

Parameters

viewAdapter
IVsTextView

The text view adapter of interest.

Returns

Null if this method is called before content has been established for the adapter, null if viewAdapter does not implement IVsUserData, otherwise the IWpfTextViewHost that presents the text in the UI.

Exceptions

viewAdapter was not produced by this factory.

viewAdapter is null.

Applies to