A difference buffer constantly computes the differences between two ITextBuffer objects, providing an IProjectionBuffer, InlineBuffer, that contains the differences between the two ITextBuffer objects in an inline difference.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Gets or sets the source of the left buffer in the difference.
Gets or sets the source of the right buffer in the difference.
Gets or sets the currently-used snapshot difference that matches up with the current snapshot of the InlineBuffer.
Gets or sets the options used in differencing the two buffers. These options are used in calls to the IHierarchicalStringDifferenceService that performs the actual comparison.
Gets or sets the top-level buffer, which contains the differences combined.
Determines whether editing is disabled in this.
Gets or sets the left buffer of the difference.
Gets or sets the general difference buffer options DifferenceBufferOptions).
(Inherited from IPropertyOwner.)
Gets or sets the right buffer in the difference.
Add a predicate to selectively ignore differences.
Add a custom SnapshotLineTransform, which can modify lines of text before they are compared.
(Inherited from IDisposable.)
Remove a predicate previously added with AddIgnoreDifferencePredicate.
The differences are computed on a background thread in response to various changes (text change, options changing, etc.), though all of the events around differencing, like SnapshotDifferenceChanged, will be raised on the thread that owns the LeftBuffer and RightBuffer (generally, the UI thread).
Because the differences are computed asynchronously, the CurrentSnapshotDifference may be behind the current versions of any of the buffers, and will be null before the first difference is computed.