Partager via


IHierarchicalStringDifferenceService.DiffSnapshotSpans Method

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)

Syntax

'Déclaration
Function DiffSnapshotSpans ( _
    left As SnapshotSpan, _
    right As SnapshotSpan, _
    differenceOptions As StringDifferenceOptions _
) As IHierarchicalDifferenceCollection
IHierarchicalDifferenceCollection DiffSnapshotSpans(
    SnapshotSpan left,
    SnapshotSpan right,
    StringDifferenceOptions differenceOptions
)
IHierarchicalDifferenceCollection^ DiffSnapshotSpans(
    SnapshotSpan left, 
    SnapshotSpan right, 
    StringDifferenceOptions differenceOptions
)
abstract DiffSnapshotSpans : 
        left:SnapshotSpan * 
        right:SnapshotSpan * 
        differenceOptions:StringDifferenceOptions -> IHierarchicalDifferenceCollection 
function DiffSnapshotSpans(
    left : SnapshotSpan, 
    right : SnapshotSpan, 
    differenceOptions : StringDifferenceOptions
) : IHierarchicalDifferenceCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Differencing.IHierarchicalDifferenceCollection
A hierarchical collection of differences.

.NET Framework Security

See Also

Reference

IHierarchicalStringDifferenceService Interface

Microsoft.VisualStudio.Text.Differencing Namespace