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

Compares the distance to a given reference point.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class DistanceToPointComparer

Inheritance: objectDistanceToPointComparer

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