ISnapshotDifference::FindMatchOrDifference Method (SnapshotPoint, Match^, Difference^)

 

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)

int FindMatchOrDifference(
	SnapshotPoint point,
	[OutAttribute] Match^% match,
	[OutAttribute] Difference^% difference
)

Parameters

point
Type: Microsoft.VisualStudio.Text::SnapshotPoint

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

match
Type: Microsoft.VisualStudio.Text.Differencing::Match^

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

difference
Type: Microsoft.VisualStudio.Text.Differencing::Difference^

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

Return Value

Type: System::Int32

The index of the matching difference.

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.

Return to top
Show: