Export (0) Print
Expand All

IDifferenceViewer Interface

A difference viewer is a container for viewing an IDifferenceBuffer in an inline or side-by-side mode. It keeps the scroll state of the different views in sync, and provides helpers for scrolling to differences and matches in all views.

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

public interface IDifferenceViewer : IPropertyOwner

The IDifferenceViewer type exposes the following members.

  NameDescription
Public propertyActiveViewTypeGets or sets the active view that last had focus.
Public propertyAreViewsSynchronizedDetermines whether the left and right views are synchronized in the side by side view.
Public propertyDifferenceBufferGets or sets the IDifferenceBuffer that this viewer is displaying.
Public propertyInlineViewGets or sets the view for displaying Inline differences.
Public propertyIsClosedDetermines whether this viewer is closed.
Public propertyLeftViewGets or sets the view for displaying the left buffer for SideBySide differences.
Public propertyOptionsGets or sets the general difference viewer options (DifferenceViewerOptions).
Public propertyPropertiesGets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public propertyRightViewGets or sets the view for displaying the right buffer for SideBySide differences.
Public propertyViewModeGets or sets the view mode (inline or side-by-side).
Top

  NameDescription
Public methodCloseCloses the viewer and all contained hosts.
Public methodScrollToChangeScroll and move the caret to the start of the given difference.
Public methodScrollToMatchScroll and move the caret to the start of the given match.
Public methodScrollToNextChange(Boolean)Given the cursor position in the last focused text view, scroll and move the caret to the next difference.
Public methodScrollToNextChange(SnapshotPoint, Boolean)Scroll and move the caret to the next difference after the specified location.
Public methodScrollToPreviousChange(Boolean)Given the cursor position in the last focused text view, scroll and move the caret to the previous difference.
Public methodScrollToPreviousChange(SnapshotPoint, Boolean)Scroll and move the caret to the previous difference before the specified location.
Top

  NameDescription
Public eventClosedOccurs when the view is closed.
Public eventViewModeChangedOccurs when the ViewMode changes.
Top
Show:
© 2014 Microsoft