11 references to DistanceBetweenPoints
System.Workflow.ComponentModel (11)
AuthoringOM\Design\Connector.cs (2)
1130
int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.
DistanceBetweenPoints
(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4;
1147
int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.
DistanceBetweenPoints
((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
AuthoringOM\Design\DesignerHelpers.cs (9)
1919
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Left, rect.Top)));
1920
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Left + rect.Width / 2, rect.Top)));
1921
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Right, rect.Top)));
1922
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Right, rect.Top + rect.Height / 2)));
1923
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Right, rect.Bottom)));
1924
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Right + rect.Width / 2, rect.Bottom)));
1925
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Left, rect.Bottom)));
1926
distances.Add(
DistanceBetweenPoints
(point, new Point(rect.Left, rect.Bottom - rect.Height / 2)));
1982
distance +=
DistanceBetweenPoints
(segments[i - 1], segments[i]);