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