다음을 통해 공유


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)

Syntax

'Declaration
Public Interface 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 DifferenceBuffer Gets or sets the IDifferenceBuffer that generated this difference.
Public property DifferenceOptions The difference options that were used in generating this difference.
Public property DifferenceSpans Gets or sets the word and line difference spans as ITrackingSpan objects against the left and right buffer.
Public property IgnoreDifferencePredicates Gets or sets the IgnoreDifferencePredicate objects that were used to generate this difference.
Public property InlineBufferSnapshot Gets or sets the snapshot generated for the inline buffer for this difference.
Public property LeftBufferSnapshot Gets or sets the snapshot of the left buffer used to compute this difference.
Public property LineDifferences Gets or sets the differences for this snapshot.
Public property RightBufferSnapshot Gets or sets the snapshot of the right buffer used to compute this difference.
Public property SnapshotLineTransforms Gets or sets the line transforms that were used to generate this difference.

Top

Methods

  Name Description
Public method FindMatchOrDifference Finds the match or difference that contains the specified point.
Public method MapToInlineSnapshot Maps a point from either the left or right buffer to the inline snapshot.
Public method MapToSnapshot(Difference, ITextSnapshot) Gets the extent of the difference in the specified snapshot.
Public method MapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode) Map the specified SnapshotPoint to the specified ITextSnapshot.
Public method MapToSourceSnapshot Maps the specified SnapshotPoint in the inline buffer to its corresponding location in the left or right snapshots.
Public method TranslateToSnapshot Translates the specified point to the corresponding snapshot associated with the snapshot difference.

Top

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace