ITextDifferencingService::DiffSnapshotSpans Method (SnapshotSpan, SnapshotSpan, StringDifferenceOptions)
Visual Studio 2015
Computes the differences between two snapshot spans, using the given difference options.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
IHierarchicalDifferenceCollection^ DiffSnapshotSpans( SnapshotSpan left, SnapshotSpan right, StringDifferenceOptions differenceOptions )
Parameters
- left
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The left span. In most cases this is from an "old" snapshot.
- right
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The right span. In most cases this is from a "new" snapshot.
- differenceOptions
-
Type:
Microsoft.VisualStudio.Text.Differencing::StringDifferenceOptions
The options to use.
Return Value
Type: Microsoft.VisualStudio.Text.Differencing::IHierarchicalDifferenceCollection^A hierarchical collection of differences.
Show: