IWpfDifferenceViewerFactoryService.TryGetViewerForTextView(ITextView) 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.
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
.