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;
354
_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
);
123
if (line.X1 ==
_lastRectangle
.Left)
127
offset.X =
_lastRectangle
.Left - mouseLoc.X;
133
offset.X =
_lastRectangle
.Right - mouseLoc.X;
141
if (line.Y1 ==
_lastRectangle
.Top)
145
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
147
else if (line.Y1 ==
_lastRectangle
.Bottom)
151
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
163
if (Math.Max(line.Y1, line.Y2) <=
_lastRectangle
.Top)
167
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
173
offset.Y =
_lastRectangle
.Bottom - mouseLoc.Y;
181
if (Math.Max(line.X1, line.X2) <=
_lastRectangle
.Left)
185
offset.X =
_lastRectangle
.Left - mouseLoc.X;
191
offset.X =
_lastRectangle
.Right - mouseLoc.X;
210
offset.X =
_lastRectangle
.Left - mouseLoc.X;
216
offset.Y =
_lastRectangle
.Top - mouseLoc.Y;
313
if (newRectangle !=
_lastRectangle
)
322
if (!
_lastRectangle
.IsEmpty)
325
using Region invalidRegion = new(
_lastRectangle
);