Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
point
Type: Microsoft.VisualStudio.Text.SnapshotPointThe 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 nulla null reference (Nothing in Visual Basic) if point lies in a difference).
difference
Type: Microsoft.VisualStudio.Text.Differencing.Difference%A difference containing the point (will be nulla null reference (Nothing in Visual Basic) if point lies in a match).
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.