Compartilhar via


IWpfDifferenceViewerFactoryService.TryGetViewerForTextView Method

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

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function TryGetViewerForTextView ( _
    textView As ITextView _
) As IWpfDifferenceViewer
IWpfDifferenceViewer TryGetViewerForTextView(
    ITextView textView
)
IWpfDifferenceViewer^ TryGetViewerForTextView(
    ITextView^ textView
)
abstract TryGetViewerForTextView : 
        textView:ITextView -> IWpfDifferenceViewer
function TryGetViewerForTextView(
    textView : ITextView
) : IWpfDifferenceViewer

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer
Returns a IWpfDifferenceViewer, if one exists, Ootherwise, nulla null reference (Nothing in Visual Basic)..

.NET Framework Security

See Also

Reference

IWpfDifferenceViewerFactoryService Interface

Microsoft.VisualStudio.Text.Differencing Namespace