Freigeben über


ISnapshotDifference.FindMatchOrDifference Method

Definition

Find the match or difference that contains the specified point.

public:
 int FindMatchOrDifference(Microsoft::VisualStudio::Text::SnapshotPoint point, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Differencing::Match ^ % match, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Differencing::Difference ^ % difference);
public int FindMatchOrDifference (Microsoft.VisualStudio.Text.SnapshotPoint point, out Microsoft.VisualStudio.Text.Differencing.Match match, out Microsoft.VisualStudio.Text.Differencing.Difference difference);
abstract member FindMatchOrDifference : Microsoft.VisualStudio.Text.SnapshotPoint * Match * Difference -> int
Public Function FindMatchOrDifference (point As SnapshotPoint, ByRef match As Match, ByRef difference As Difference) As Integer

Parameters

point
SnapshotPoint

Point for which to find the corresponding difference. This can be on the left, right or inline buffers.

match
Match

Match containing the point (will be null if point lies in a difference).

difference
Difference

Difference containing the point (will be null if point lies in a match).

Returns

Index of the matching difference.

Remarks

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

Applies to