Partilhar via


IWpfDifferenceViewerFactoryService.TryGetViewerForTextView(ITextView) Method

Definition

If the given text view is owned by a difference viewer, retrieve that difference viewer.

public:
 Microsoft::VisualStudio::Text::Differencing::IWpfDifferenceViewer ^ TryGetViewerForTextView(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public:
 Microsoft::VisualStudio::Text::Differencing::IWpfDifferenceViewer ^ TryGetViewerForTextView(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
Microsoft::VisualStudio::Text::Differencing::IWpfDifferenceViewer TryGetViewerForTextView(Microsoft::VisualStudio::Text::Editor::ITextView const & textView);
public Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer TryGetViewerForTextView (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member TryGetViewerForTextView : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer
Public Function TryGetViewerForTextView (textView As ITextView) As IWpfDifferenceViewer

Parameters

textView
ITextView

The view to find the difference viewer for.

Returns

A difference viewer, if one exists. Otherwise, null.

Applies to