IHierarchicalStringDifferenceService::DiffSnapshotSpans Method (SnapshotSpan, SnapshotSpan, StringDifferenceOptions)

 

Calculates the differences between two snapshot spans, using the given difference options.

Namespace:   Microsoft.VisualStudio.Text.Differencing
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 snapshot. In most cases this is the the "old" snapshot.

right
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The right snapshot. In most cases this is the "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.

Return to top
Show: