Table of Contents

Class Imaging.MatchSimilarityComparer

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Compares to matches by their similarity.

public class Imaging.MatchSimilarityComparer : IComparer<Imaging.Match>
Inheritance
Imaging.MatchSimilarityComparer
Implements
Inherited Members

Constructors

MatchSimilarityComparer()

Creates a new instance.

public MatchSimilarityComparer()

MatchSimilarityComparer(bool)

Creates a new instance.

public MatchSimilarityComparer(bool descending)

Parameters

descending bool

True to compare matches in descending order.

Methods

Compare(Match, Match)

Compares two matches and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare(Imaging.Match x, Imaging.Match y)

Parameters

x Imaging.Match

Match one.

y Imaging.Match

Match two.

Returns

int

A value indicating whether one is less than, equal to, or greater than the other.

Sort(List<Match>, bool)

Sorts the specified list of matches by their similarity.

public static void Sort(List<Imaging.Match> matches, bool descending)

Parameters

matches List<Imaging.Match>

A list of matches.

descending bool

True to sort descending, false to sort ascending.