Compartilhar via


IgnoreDifferencePredicate Delegate

Definition

A custom predicate that the IDifferenceBuffer uses to selectively ignore differences.

public delegate bool IgnoreDifferencePredicate(Difference ^ lineDifference, ITextSnapshot ^ leftSnapshot, ITextSnapshot ^ rightSnapshot);
public delegate bool IgnoreDifferencePredicate(Difference lineDifference, ITextSnapshot leftSnapshot, ITextSnapshot rightSnapshot);
type IgnoreDifferencePredicate = delegate of Difference * ITextSnapshot * ITextSnapshot -> bool
Public Delegate Function IgnoreDifferencePredicate(lineDifference As Difference, leftSnapshot As ITextSnapshot, rightSnapshot As ITextSnapshot) As Boolean 

Parameters

lineDifference
Difference

The lines that have changed. The Left and Right spans are line numbers in the leftSnapshot and rightSnapshot, respectively.

leftSnapshot
ITextSnapshot

The snapshot of the LeftBuffer being compared.

rightSnapshot
ITextSnapshot

The snapshot of the RightBuffer being compared.

Return Value

true to ignore the given difference, false to include it in the list of differences.

Applies to