Class
DistanceToPointComparer

Compares the distance to a given reference point.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public class DistanceToPointComparer : IComparer<Point>

Inheritance: objectDistanceToPointComparer

Implements: IComparer<Point>

Constructors

DistanceToPointComparer(Point)

Initializes a new instance of the DistanceToPointComparer class.

Declaration

cs-api-definition
public DistanceToPointComparer(Point referencePoint)

Parameters

referencePoint

Point

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

Properties

ReferencePoint

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

Declaration

cs-api-definition
public Point ReferencePoint { get; set; }

Property Value

Point

Methods

Compare(Point, Point)

Compares the specified left.

Declaration

cs-api-definition
public int Compare(Point x, Point y)

Parameters

x

Point

A point.

y

Point

Another point to compare the first one with.

Returns

int

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