New to Telerik UI for WPFStart a free 30-day trial

Compares the distance to a given reference point.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public class DistanceToPointComparer : IComparer<Point>

Inheritance: objectDistanceToPointComparer

Implements: IComparer<Point>

Constructors

Initializes a new instance of the DistanceToPointComparer class.

C#
public DistanceToPointComparer(Point referencePoint)
Parameters:referencePointPoint

The point which sets the reference to which the other points are compared.

Properties

Gets or sets the reference point with respect to which the ordering occurs.

C#
public Point ReferencePoint { get; set; }

Methods

Compares the specified left.

C#
public int Compare(Point x, Point y)
Parameters:xPoint

A point.

yPoint

Another point to compare the first one with.

Returns:

int

Implements: IComparer<Point>.Compare(Point, Point)