Freigeben über


ISnapshotDifference Interface

Definition

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

public interface class ISnapshotDifference
public interface class ISnapshotDifference
__interface ISnapshotDifference
public interface ISnapshotDifference
type ISnapshotDifference = interface
Public Interface ISnapshotDifference

Properties

DifferenceBuffer

The IDifferenceBuffer that generated this difference.

DifferenceOptions

The difference options that were used to generate this difference.

DifferenceSpans

The word and line difference spans as ITrackingSpans against the left and right buffer.

IgnoreDifferencePredicates

The ignore difference predicates that were used to generate this difference.

InlineBufferSnapshot

The snapshot generated for the inline buffer for this difference.

LeftBufferSnapshot

The snapshot of the left buffer used to compute this difference.

LineDifferences

The differences for this snapshot.

RightBufferSnapshot

The snapshot of the right buffer used to compute this difference.

SnapshotLineTransforms

The line transforms that were used to generate this difference.

Methods

FindMatchOrDifference(SnapshotPoint, Match, Difference)

Find the match or difference that contains the specified point.

MapToInlineSnapshot(SnapshotPoint, PositionAffinity)

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

MapToInlineSnapshot(SnapshotPoint)

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

MapToSnapshot(Difference, ITextSnapshot)

Get the extent of the difference in the specified snapshot.

MapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode)

Map the specified SnapshotPoint to the specified ITextSnapshot.

MapToSourceSnapshot(SnapshotPoint)

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

TranslateToSnapshot(SnapshotPoint)

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

Applies to