Share via


IWpfDifferenceViewer Interface

A WPF-specific version of an < IDifferenceViewer, which provides access to the VisualElementused to host the viewer and the various text view hosts as IWpfTextViewHost.

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

Syntax

'Declaration
Public Interface IWpfDifferenceViewer _
    Inherits IDifferenceViewer, IPropertyOwner
public interface IWpfDifferenceViewer : IDifferenceViewer, 
    IPropertyOwner
public interface class IWpfDifferenceViewer : IDifferenceViewer, 
    IPropertyOwner
type IWpfDifferenceViewer =  
    interface 
        interface IDifferenceViewer 
        interface IPropertyOwner 
    end
public interface IWpfDifferenceViewer extends IDifferenceViewer, IPropertyOwner

The IWpfDifferenceViewer type exposes the following members.

Properties

  Name Description
Public property ActiveViewType Gets or sets the active view that last had focus. (Inherited from IDifferenceViewer.)
Public property AreViewsSynchronized Determines whether the left and right views are synchronized in the side by side view. (Inherited from IDifferenceViewer.)
Public property DifferenceBuffer Gets or sets the IDifferenceBuffer that this viewer is displaying. (Inherited from IDifferenceViewer.)
Public property InlineHost Gets or sets the host for displaying Inline differences.
Public property InlineView Gets or sets the view for displaying Inline differences
Public property IsClosed Determines whether this viewer is closed. (Inherited from IDifferenceViewer.)
Public property IsInitialized Determines whether this viewer has been initialized.
Public property LeftHost Gets or sets the host for displaying the left buffer for SideBySide differences.
Public property LeftView Gets the view for displaying the left buffer for SideBySide differences.
Public property Options Gets or sets the general difference viewer options (DifferenceViewerOptions). (Inherited from IDifferenceViewer.)
Public property Properties Gets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public property RightHost Gets or sets the host for displaying the right buffer for SideBySide differences.
Public property RightView Gets the view for displaying the right buffer for SideBySide differences.
Public property ViewMode Gets or sets the view mode (inline or side-by-side). (Inherited from IDifferenceViewer.)
Public property VisualElement Gets or sets the visual element of this viewer.

Top

Methods

  Name Description
Public method Close Closes the viewer and all contained hosts. (Inherited from IDifferenceViewer.)
Public method Initialize Initialize the DifferenceViewer, hooking it to the specified buffer and using the callback to create the text view hosts.
Public method ScrollToChange Scroll and move the caret to the start of the given difference. (Inherited from IDifferenceViewer.)
Public method ScrollToMatch Scroll and move the caret to the start of the given match. (Inherited from IDifferenceViewer.)
Public method ScrollToNextChange(Boolean) Given the cursor position in the last focused text view, scroll and move the caret to the next difference. (Inherited from IDifferenceViewer.)
Public method ScrollToNextChange(SnapshotPoint, Boolean) Scroll and move the caret to the next difference after the specified location. (Inherited from IDifferenceViewer.)
Public method ScrollToPreviousChange(Boolean) Given the cursor position in the last focused text view, scroll and move the caret to the previous difference. (Inherited from IDifferenceViewer.)
Public method ScrollToPreviousChange(SnapshotPoint, Boolean) Scroll and move the caret to the previous difference before the specified location. (Inherited from IDifferenceViewer.)

Top

Events

  Name Description
Public event Closed Occurs when the view is closed. (Inherited from IDifferenceViewer.)
Public event ViewModeChanged Occurs when the ViewMode changes. (Inherited from IDifferenceViewer.)

Top

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace