Udostępnij za pośrednictwem


IHierarchicalStringDifferenceService.DiffSnapshotSpans Method

Definition

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.

Applies to