次の方法で共有


IVsEditorAdaptersFactoryService.GetWpfTextView(IVsTextView) Method

Definition

Get the WpfTextView of an IVsTextView adapter.

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

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 IWpfTextView that presents the text in the UI.

Exceptions

viewAdapter was not produced by this factory.

viewAdapter is null.

Applies to