IgnoreDifferencePredicate Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.