CalculateMovedLines Method

Gets an unordered enumeration of moved lines, as pairs of line numbers. These matches come from the removed and added regions (from the LineDifferences).

Namespace:  Microsoft.VisualStudio.Data.Tools.Delta
Assembly:  Microsoft.VisualStudio.Data.Tools.Delta (in Microsoft.VisualStudio.Data.Tools.Delta.dll)

Syntax

'Declaration
Function CalculateMovedLines As IEnumerable(Of Tuple)
'Usage
Dim instance As ISnapshotDifference
Dim returnValue As IEnumerable(Of Tuple)

returnValue = instance.CalculateMovedLines()
IEnumerable<Tuple> CalculateMovedLines()
IEnumerable<Tuple^>^ CalculateMovedLines()
abstract CalculateMovedLines : unit -> IEnumerable<Tuple> 
function CalculateMovedLines() : IEnumerable<Tuple>

Return Value

Type: System.Collections.Generic..::..IEnumerable< (Of < ( <'Tuple< (Of < ( <'T1, T2> ) > ) >> ) > ) >
An enumeration of moved lines, as pairs of line numbers.

Remarks

You can, and should, call this method on a background thread.

See Also

Reference

ISnapshotDifference Interface

Microsoft.VisualStudio.Data.Tools.Delta Namespace