IWpfDifferenceViewerFactoryService.TryGetViewerForTextView(ITextView) 方法

定义

如果给定的文本视图属于差异查看器,则检索该差异查看器。

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

参数

textView
ITextView

要查找其差异查看器的视图。

返回

IWpfDifferenceViewer

差异查看器(如果有)。 否则 为 null

适用于