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.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
| Name | Description | |
|---|---|---|
![]() | DifferenceBuffer | Gets or sets the IDifferenceBuffer that generated this difference. |
![]() | DifferenceOptions | The difference options that were used in generating this difference. |
![]() | DifferenceSpans | Gets or sets the word and line difference spans as ITrackingSpan objects against the left and right buffer. |
![]() | IgnoreDifferencePredicates | Gets or sets the IgnoreDifferencePredicate objects that were used to generate this difference. |
![]() | InlineBufferSnapshot | Gets or sets the snapshot generated for the inline buffer for this difference. |
![]() | LeftBufferSnapshot | Gets or sets the snapshot of the left buffer used to compute this difference. |
![]() | LineDifferences | Gets or sets the differences for this snapshot. |
![]() | RightBufferSnapshot | Gets or sets the snapshot of the right buffer used to compute this difference. |
![]() | SnapshotLineTransforms | Gets or sets the line transforms that were used to generate this difference. |
| Name | Description | |
|---|---|---|
![]() | FindMatchOrDifference(SnapshotPoint, Match, Difference) | Finds the match or difference that contains the specified point. |
![]() | MapToInlineSnapshot(SnapshotPoint) | Maps a point from either the left or right buffer to the inline snapshot. |
![]() | MapToSnapshot(Difference, ITextSnapshot) | Gets the extent of the difference in the specified snapshot. |
![]() | MapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode) | Map the specified SnapshotPoint to the specified ITextSnapshot. |
![]() | MapToSourceSnapshot(SnapshotPoint) | Maps the specified SnapshotPoint in the inline buffer to its corresponding location in the left or right snapshots. |
![]() | TranslateToSnapshot(SnapshotPoint) | Translates the specified point to the corresponding snapshot associated with the snapshot difference. |

