3 writes to _lastRectangle
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (3)
36
_lastRectangle
= Rectangle.Empty;
87
_lastRectangle
= Rectangle.Empty;
357
_lastRectangle
= newRectangle;
20 references to _lastRectangle
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (20)
81
if (!
_lastRectangle
.IsEmpty)
83
_behaviorService.Invalidate(
_lastRectangle
);
126
if (line.X1 ==
_lastRectangle
.Left)
130
offset.X =
_lastRectangle
.Left - mouseLoc.X;
136
offset.X =
_lastRectangle
.Right - mouseLoc.X;
144
if (line.Y1 ==
_lastRectangle
.Top)
148
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
150
else if (line.Y1 ==
_lastRectangle
.Bottom)
154
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
166
if (Math.Max(line.Y1, line.Y2) <=
_lastRectangle
.Top)
170
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
176
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
184
if (Math.Max(line.X1, line.X2) <=
_lastRectangle
.Left)
188
offset.X =
_lastRectangle
.Left - mouseLoc.X;
194
offset.X =
_lastRectangle
.Right - mouseLoc.X;
213
offset.X =
_lastRectangle
.Left - mouseLoc.X;
219
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
316
if (newRectangle !=
_lastRectangle
)
325
if (!
_lastRectangle
.IsEmpty)
328
using Region invalidRegion = new(
_lastRectangle
);