8 writes to Location
System.Data (8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (8)
320
next.
Location
= (slope < 1) ? new Point(next.Location.X, previous.Location.Y) : new Point(previous.Location.X, next.Location.Y);
330
previous.
Location
= (slope < 1) ? new Point(previous.Location.X, next.Location.Y) : new Point(next.Location.X, previous.Location.Y);
448
this.activeEditPoint.
Location
= newPoint;
469
this.activeEditPoint.
Location
= targetConnPt.Location;
483
this.activeEditPoint.
Location
= targetConnPt.Location;
510
previous.
Location
= (orientation == Orientation.Horizontal) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y);
515
next.
Location
= (orientation == Orientation.Horizontal) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y);
518
this.activeEditPoint.
Location
= newPoint;
71 references to Location
System.Data (71)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (71)
65
&& this.editedConnector.Points[0] != this.EditPoints[0].
Location
);
74
&& this.editedConnector.Points[this.editedConnector.Points.Count - 1] != this.EditPoints[this.EditPoints.Count - 1].
Location
);
126
if (DesignerGeometryHelper.DistanceBetweenPoints(pt, editPoint.
Location
) <= EditPointHitTestRadius)
181
if (this.editPoints.Count == 0 || !this.editPoints[0].
Location
.Equals(editedConnector.Points[0]))
243
segments.Add(this.EditPoints[i].
Location
);
297
double slope = DesignerGeometryHelper.SlopeOfLineSegment(current.
Location
, next.
Location
);
300
Point location = (slope < 1) ? new Point(next.
Location
.X, current.
Location
.Y) : new Point(current.
Location
.X, next.
Location
.Y);
316
double distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { previous.
Location
, current.
Location
});
319
double slope = DesignerGeometryHelper.SlopeOfLineSegment(current.
Location
, next.
Location
);
320
next.Location = (slope < 1) ? new Point(next.
Location
.X, previous.
Location
.Y) : new Point(previous.
Location
.X, next.
Location
.Y);
326
distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { current.
Location
, next.
Location
});
329
double slope = DesignerGeometryHelper.SlopeOfLineSegment(previous.
Location
, current.
Location
);
330
previous.Location = (slope < 1) ? new Point(previous.
Location
.X, next.
Location
.Y) : new Point(next.
Location
.X, previous.
Location
.Y);
349
double slope1 = DesignerGeometryHelper.SlopeOfLineSegment(previous.
Location
, current.
Location
);
350
double slope2 = DesignerGeometryHelper.SlopeOfLineSegment(current.
Location
, next.
Location
);
404
double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.
Location
, this.activeEditPoint.
Location
);
407
int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.
Location
, (next != null) ? next.
Location
: this.activeEditPoint.
Location
)) / 4;
410
editPointOffset *= (previous.
Location
.X < this.activeEditPoint.
Location
.X) ? 1 : -1;
414
editPointOffset *= (previous.
Location
.Y < this.activeEditPoint.
Location
.Y) ? 1 : -1;
418
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.
Location
.X + editPointOffset, previous.
Location
.Y) : new Point(previous.
Location
.X, previous.
Location
.Y + editPointOffset);
425
double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.
Location
, next.
Location
);
428
int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.
Location
: this.activeEditPoint.
Location
, next.
Location
)) / 4;
431
editPointOffset *= (this.activeEditPoint.
Location
.X < next.
Location
.X) ? -1 : 1;
435
editPointOffset *= (this.activeEditPoint.
Location
.Y < next.
Location
.Y) ? -1 : 1;
439
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.
Location
.X + editPointOffset, next.
Location
.Y) : new Point(next.
Location
.X, next.
Location
.Y + editPointOffset);
453
Point begin = this.editPoints[0].
Location
;
454
Point end = this.editPoints[this.editPoints.Count - 1].
Location
;
508
double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.
Location
, this.activeEditPoint.
Location
);
510
previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.
Location
.X, newPoint.Y) : new Point(newPoint.X, previous.
Location
.Y);
513
slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.
Location
, next.
Location
);
515
next.Location = (orientation == Orientation.Horizontal) ? new Point(next.
Location
.X, newPoint.Y) : new Point(newPoint.X, next.
Location
.Y);
607
drawingContext.DrawEllipse(renderBrush, renderPen, adornedEditor.EditPoints[i].
Location
, renderRadius, renderRadius);
610
drawingContext.DrawLine(renderPen, adornedEditor.EditPoints[i].
Location
, adornedEditor.EditPoints[i + 1].
Location
);
613
drawingContext.DrawEllipse(renderBrush, renderPen, adornedEditor.EditPoints[i].
Location
, renderRadius, renderRadius);