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

NameDescription
System_CAPS_pubpropertyDifferenceBuffer

Gets or sets the IDifferenceBuffer that generated this difference.

System_CAPS_pubpropertyDifferenceOptions

The difference options that were used in generating this difference.

System_CAPS_pubpropertyDifferenceSpans

Gets or sets the word and line difference spans as ITrackingSpan objects against the left and right buffer.

System_CAPS_pubpropertyIgnoreDifferencePredicates

Gets or sets the IgnoreDifferencePredicate objects that were used to generate this difference.

System_CAPS_pubpropertyInlineBufferSnapshot

Gets or sets the snapshot generated for the inline buffer for this difference.

System_CAPS_pubpropertyLeftBufferSnapshot

Gets or sets the snapshot of the left buffer used to compute this difference.

System_CAPS_pubpropertyLineDifferences

Gets or sets the differences for this snapshot.

System_CAPS_pubpropertyRightBufferSnapshot

Gets or sets the snapshot of the right buffer used to compute this difference.

System_CAPS_pubpropertySnapshotLineTransforms

Gets or sets the line transforms that were used to generate this difference.

NameDescription
System_CAPS_pubmethodFindMatchOrDifference(SnapshotPoint, Match, Difference)

Finds the match or difference that contains the specified point.

System_CAPS_pubmethodMapToInlineSnapshot(SnapshotPoint)

Maps a point from either the left or right buffer to the inline snapshot.

System_CAPS_pubmethodMapToSnapshot(Difference, ITextSnapshot)

Gets the extent of the difference in the specified snapshot.

System_CAPS_pubmethodMapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode)

Map the specified SnapshotPoint to the specified ITextSnapshot.

System_CAPS_pubmethodMapToSourceSnapshot(SnapshotPoint)

Maps the specified SnapshotPoint in the inline buffer to its corresponding location in the left or right snapshots.

System_CAPS_pubmethodTranslateToSnapshot(SnapshotPoint)

Translates the specified point to the corresponding snapshot associated with the snapshot difference.

Return to top
Show: