IHierarchicalStringDifferenceService.DiffSnapshotSpans Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the differences between two snapshot spans, using the given difference options.
public:
Microsoft::VisualStudio::Text::Differencing::IHierarchicalDifferenceCollection ^ DiffSnapshotSpans(Microsoft::VisualStudio::Text::SnapshotSpan left, Microsoft::VisualStudio::Text::SnapshotSpan right, Microsoft::VisualStudio::Text::Differencing::StringDifferenceOptions differenceOptions);
public Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection DiffSnapshotSpans (Microsoft.VisualStudio.Text.SnapshotSpan left, Microsoft.VisualStudio.Text.SnapshotSpan right, Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions differenceOptions);
abstract member DiffSnapshotSpans : Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.Differencing.StringDifferenceOptions -> Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection
Public Function DiffSnapshotSpans (left As SnapshotSpan, right As SnapshotSpan, differenceOptions As StringDifferenceOptions) As IHierarchicalDifferenceCollection
Parameters
- left
- SnapshotSpan
The left snapshot. In most cases this is the the "old" snapshot.
- right
- SnapshotSpan
The right snapshot. In most cases this is the "new" snapshot.
- differenceOptions
- StringDifferenceOptions
The options to use.
Returns
A hierarchical collection of differences.