Partager via


ISnapshotDifference.FindMatchOrDifference Method

Finds the match or difference that contains the specified point.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function FindMatchOrDifference ( _
    point As SnapshotPoint, _
    <OutAttribute> ByRef match As Match, _
    <OutAttribute> ByRef difference As Difference _
) As Integer
int FindMatchOrDifference(
    SnapshotPoint point,
    out Match match,
    out Difference difference
)
int FindMatchOrDifference(
    SnapshotPoint point, 
    [OutAttribute] Match^% match, 
    [OutAttribute] Difference^% difference
)
abstract FindMatchOrDifference : 
        point:SnapshotPoint * 
        match:Match byref * 
        difference:Difference byref -> int
function FindMatchOrDifference(
    point : SnapshotPoint, 
    match : Match, 
    difference : Difference
) : int

Parameters

Return Value

Type: Int32
The index of the matching difference.

Remarks

If point is contained in a match, then the return value is the index of the following difference. If point is contained in a match after the last difference, then the return value is equal to the count of differences.

.NET Framework Security

See Also

Reference

ISnapshotDifference Interface

Microsoft.VisualStudio.Text.Differencing Namespace