Method
Point.Distance(Other As
Point)
As DoubleNew in 2019r2Supported for all project types and targets.
Calculates the distance between the point and the passed point.
Sample Code
Var thePoint As Point = DraggingRect.Origin
Var d As Double = thePoint.DistanceTo(RectTwo.Origin)