9 writes to X2
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (7)
833
lines[i].
X2
= Math.Max(dragRect.Left, lines[i].OriginalBounds.Left);
838
lines[i].
X2
= dragRect.Left;
844
lines[i].
X2
= lines[i].OriginalBounds.Right;
847
lines[i].
X2
--; // off by 1 adjust
853
lines[i].X1 = lines[i].
X2
= coord;
877
lines[i].
X2
-= 1; // off by 1 adjust
889
lines[i].
X2
--; // off by 1 adjustment
System\Windows\Forms\Design\Behavior\DragAssistanceManager.Line.cs (2)
33
X2
= x2;
42
X2
= x2;
19 references to X2
System.Windows.Forms.Design (19)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (5)
372
invalidRect = new Rectangle(diffs[k].X1, diffs[k].Y1, diffs[k].
X2
- diffs[k].X1, diffs[k].Y2 - diffs[k].Y1);
393
invalidRect = new Rectangle(line.X1, line.Y1, line.
X2
- line.X1, line.Y2 - line.Y1);
825
if (lines[i].X1 == lines[i].
X2
)
883
if (lines[i].X1 == lines[i].
X2
)
893
_graphics.DrawLine(currentPen, lines[i].X1, lines[i].Y1, lines[i].
X2
, lines[i].Y2);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.Line.cs (11)
50
if (l1.X1 == l1.
X2
&& l1.X1 == l2.X1)
63
new(Math.Min(l1.
X2
, l2.
X2
), l1.Y1, Math.Max(l1.
X2
, l2.
X2
), l1.Y1)
85
if ((l1.X1 == l1.
X2
) && (l2.X1 == l2.
X2
) && (l1.X1 == l2.X1))
87
return new Line(l1.X1, Math.Min(l1.Y1, l2.Y1), l1.
X2
, Math.Max(l1.Y2, l2.Y2), l1.LineType);
93
return new Line(Math.Min(l1.X1, l2.X1), l1.Y1, Math.Max(l1.
X2
, l2.
X2
), l1.Y2, l1.LineType);
100
$"Line, type = {LineType}, dims =({X1}, {Y1})->({
X2
}, {Y2})";
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (3)
125
if (!horizontalComponentIdentified && line.X1 == line.
X2
)
165
if (!verticalComponentIdentified && line.X1 == line.
X2
)
186
if (Math.Max(line.X1, line.
X2
) <= _lastRectangle.Left)