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

適用於