Export (0) Print
Expand All

ISnapshotDifference Interface

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.

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

public interface ISnapshotDifference

The ISnapshotDifference type exposes the following members.

  NameDescription
Public propertyDifferenceBufferGets or sets the IDifferenceBuffer that generated this difference.
Public propertyDifferenceOptionsThe difference options that were used in generating this difference.
Public propertyDifferenceSpansGets or sets the word and line difference spans as ITrackingSpan objects against the left and right buffer.
Public propertyIgnoreDifferencePredicatesGets or sets the IgnoreDifferencePredicate objects that were used to generate this difference.
Public propertyInlineBufferSnapshotGets or sets the snapshot generated for the inline buffer for this difference.
Public propertyLeftBufferSnapshotGets or sets the snapshot of the left buffer used to compute this difference.
Public propertyLineDifferencesGets or sets the differences for this snapshot.
Public propertyRightBufferSnapshotGets or sets the snapshot of the right buffer used to compute this difference.
Public propertySnapshotLineTransformsGets or sets the line transforms that were used to generate this difference.
Top

  NameDescription
Public methodFindMatchOrDifferenceFinds the match or difference that contains the specified point.
Public methodMapToInlineSnapshotMaps a point from either the left or right buffer to the inline snapshot.
Public methodMapToSnapshot(Difference, ITextSnapshot)Gets the extent of the difference in the specified snapshot.
Public methodMapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode)Map the specified SnapshotPoint to the specified ITextSnapshot.
Public methodMapToSourceSnapshotMaps the specified SnapshotPoint in the inline buffer to its corresponding location in the left or right snapshots.
Public methodTranslateToSnapshotTranslates the specified point to the corresponding snapshot associated with the snapshot difference.
Top
Show:
© 2015 Microsoft