Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
|---|---|---|
| .gif) | DifferenceBuffer | Gets or sets the IDifferenceBuffer that generated this difference. | 
| .gif) | DifferenceOptions | The difference options that were used in generating this difference. | 
| .gif) | DifferenceSpans | Gets or sets the word and line difference spans as ITrackingSpan objects against the left and right buffer. | 
| .gif) | IgnoreDifferencePredicates | Gets or sets the IgnoreDifferencePredicate objects that were used to generate this difference. | 
| .gif) | InlineBufferSnapshot | Gets or sets the snapshot generated for the inline buffer for this difference. | 
| .gif) | LeftBufferSnapshot | Gets or sets the snapshot of the left buffer used to compute this difference. | 
| .gif) | LineDifferences | Gets or sets the differences for this snapshot. | 
| .gif) | RightBufferSnapshot | Gets or sets the snapshot of the right buffer used to compute this difference. | 
| .gif) | SnapshotLineTransforms | Gets or sets the line transforms that were used to generate this difference. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | FindMatchOrDifference | Finds the match or difference that contains the specified point. | 
| .gif) | MapToInlineSnapshot | Maps a point from either the left or right buffer to the inline snapshot. | 
| .gif) | MapToSnapshot(Difference, ITextSnapshot) | Gets the extent of the difference in the specified snapshot. | 
| .gif) | MapToSnapshot(SnapshotPoint, ITextSnapshot, DifferenceMappingMode) | Map the specified SnapshotPoint to the specified ITextSnapshot. | 
| .gif) | MapToSourceSnapshot | Maps the specified SnapshotPoint in the inline buffer to its corresponding location in the left or right snapshots. | 
| .gif) | TranslateToSnapshot | Translates the specified point to the corresponding snapshot associated with the snapshot difference. | 
Top