Class DistanceToPointComparer
Compares the distance to a given reference point.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Diagrams.dll
Syntax
public class DistanceToPointComparer : IComparer<Point>
Constructors
DistanceToPointComparer(Point)
Initializes a new instance of the DistanceToPointComparer class.
Declaration
public DistanceToPointComparer(Point referencePoint)
Parameters
System.Windows.Point
referencePoint
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
public Point ReferencePoint { get; set; }
Property Value
System.Windows.Point
|
Methods
Compare(Point, Point)
Compares the specified left.
Declaration
public int Compare(Point x, Point y)
Parameters
System.Windows.Point
x
A point. |
System.Windows.Point
y
Another point to compare the first one with. |
Returns
System.Int32
|