3 writes to _lastRectangle
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (3)
38
_lastRectangle
= Rectangle.Empty;
89
_lastRectangle
= Rectangle.Empty;
362
_lastRectangle
= newRectangle;
20 references to _lastRectangle
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (20)
83
if (!
_lastRectangle
.IsEmpty)
85
_behaviorService.Invalidate(
_lastRectangle
);
128
if (line.X1 ==
_lastRectangle
.Left)
132
offset.X =
_lastRectangle
.Left - mouseLoc.X;
138
offset.X =
_lastRectangle
.Right - mouseLoc.X;
146
if (line.Y1 ==
_lastRectangle
.Top)
150
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
152
else if (line.Y1 ==
_lastRectangle
.Bottom)
156
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
168
if (Math.Max(line.Y1, line.Y2) <=
_lastRectangle
.Top)
172
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
178
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
186
if (Math.Max(line.X1, line.X2) <=
_lastRectangle
.Left)
190
offset.X =
_lastRectangle
.Left - mouseLoc.X;
196
offset.X =
_lastRectangle
.Right - mouseLoc.X;
215
offset.X =
_lastRectangle
.Left - mouseLoc.X;
221
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
320
if (newRectangle !=
_lastRectangle
)
329
if (!
_lastRectangle
.IsEmpty)
332
using Region invalidRegion = new(
_lastRectangle
);