Microsoft.VisualStudio.Text.Differencing Namespace

Classes

BaseLeftBufferChangedEventArgs
Difference

Represents a single difference in the set of differences of two lists of elements.

DifferenceBufferOption<T>

A base class that can be used for options that are specific to an IDifferenceBuffer.

DifferenceBufferOptions

A set of options for the difference buffer.

DifferenceBufferProperties
DifferenceViewerOption<T>

A base class that can be used for options that are specific to an IDifferenceViewer.

DifferenceViewerOptions

A set of options about the difference viewer display.

DifferenceViewerRoles

The text view roles associated with an IDifferenceViewer.

Match

Represents a range of matches between two sequences as a pair of spans of equal length.

SnapshotDifferenceChangeEventArgs

Used in conjunction with the SnapshotDifferenceChanging and SnapshotDifferenceChanged events.

Structs

StringDifferenceOptions

Options to use in calculating string differences.

Interfaces

IDifferenceBuffer

A difference buffer constantly computes the differences between two ITextBuffer objects, providing an IProjectionBuffer, InlineBuffer, that contains the differences between the two ITextBuffer objects in an inline difference.

IDifferenceBuffer2
IDifferenceBufferFactoryService

A factory for creating IDifferenceBuffer instances.

IDifferenceBufferFactoryService2
IDifferenceCollection<T>

Represents a collection of Difference objects.

IDifferenceService

Determines the differences between two sequences, based on adding or removing elements (but not translating or copying elements).

IDifferenceTextViewModel

Represents a set of zero or more ITextBuffer objects that are unique to the presentation of text in a particular ITextView.

IDifferenceTrackingSpanCollection

Tracking spans for an ISnapshotDifference for the various line and word differences.

IDifferenceViewer

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.

IDifferenceViewer2
IHierarchicalDifferenceCollection

Represents a difference collection in which the left and right sequences are ITokenizedStringList objects, and each difference may itself contain an IHierarchicalDifferenceCollection.

IHierarchicalStringDifferenceService

This service has several shortcut methods that compute differences over strings, snapshots, and spans.

ISnapshotDifference

A set of differences between two ITextSnapshot objects. These are created by an IDifferenceBuffer, and are valid to a specific set of snapshots for the LeftBuffer, the RightBuffer, and the StringDifferenceOptions and collections of SnapshotLineTransform and IgnoreDifferencePredicate in place at that time.

ITextDifferencingSelectorService

Used to retrieve an ITextDifferencingService for a given content type. These services may be provided by extenders and may return differences that more closely match the semantics of the given content type, instead of simple textual differencing.

ITextDifferencingService

This service has methods that compute differences over strings, snapshots, and spans. Differences are computed according to the specified StringDifferenceTypes, starting with the most general type (line is more general than word, and word is more general than character). This service is meant to be provided by extenders to override diff behavior by content type, thus allowing more control over the differences produced and how they align semantically (based upon the given language/content type).

ITokenizedStringList

A tokenized representation of a string into abutting and non-overlapping segments.

IWpfDifferenceViewer

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.

IWpfDifferenceViewerFactoryService

A service for creating IWpfDifferenceViewer objects.

Enums

DifferenceHighlightMode

The highlight mode for this < IDifferenceViewer.

DifferenceHighlightMode2

The highlight mode for this IDifferenceViewer.

DifferenceHighlightMode3

The highlight mode for this IDifferenceViewer.

DifferenceMappingMode

The mapping modes that can be used when mapping points inside a difference between the left and right snapshots.

DifferenceType

The types of differences.

DifferenceViewMode

The view mode for an IDifferenceViewer.

DifferenceViewType

The view type for a view created by an IDifferenceViewer.

IgnoreWhiteSpaceBehavior

Determines how to treat whitespace.

LineType

The line type, as used in methods on IDifferenceBuffer.

StringDifferenceTypes

A bitwise combination of the enumeration values to use when computing differences with the various methods in IHierarchicalStringDifferenceService.

WordSplitBehavior

Behavior to use while splitting words in string differencing.

Delegates

ContinueProcessingPredicate<T>

A predicate used by IDifferenceService to allow callers to stop differencing prematurely.

CreateTextViewHostCallback

Callback used with Microsoft.VIsualStudio.Text.Differencing.IWpfDifferenceViewerFactoryService to create a text view host.

DetermineLocalityCallback

Determining the locality for a given difference type and left/right strings.

IgnoreDifferencePredicate

Add a predicate to selectively ignore differences.Predicate: A predicate to be called for every computed line difference.

SnapshotLineTransform

A custom transform for text snapshot lines, to allow clients of IDifferenceBuffer to modify lines before performing any comparison.line: The original snapshot line that this transform is being asked to operate on.</currentText: The current text of the line, which may differ from GetText()" if an earlier transform has already processed the line.Returns the new line text to use for the line.