Share via


ISnapshotDifference Interface

A set of differences between two ITextSnapshots.

Namespace:  Microsoft.VisualStudio.Data.Tools.Delta
Assembly:  Microsoft.VisualStudio.Data.Tools.Delta (in Microsoft.VisualStudio.Data.Tools.Delta.dll)

Syntax

'Declaration
Public Interface ISnapshotDifference
'Usage
Dim instance As ISnapshotDifference
public interface ISnapshotDifference
public interface class ISnapshotDifference
type ISnapshotDifference =  interface end
public interface ISnapshotDifference

The ISnapshotDifference type exposes the following members.

Properties

  Name Description
Public property DifferenceSpans The various difference spans as ITrackingSpans against the left or right buffer.
Public property LeftBufferSnapshot The snapshot of the left buffer used to compute this difference.
Public property LineDifferences The differences for this snapshot.
Public property RightBufferSnapshot The snapshot of the right buffer used to compute this difference.

Top

Methods

  Name Description
Public method CalculateMovedLines Gets an unordered enumeration of moved lines, as pairs of line numbers. These matches come from the removed and added regions (from the LineDifferences).

Top

See Also

Reference

Microsoft.VisualStudio.Data.Tools.Delta Namespace