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)
81if (!_lastRectangle.IsEmpty) 83_behaviorService.Invalidate(_lastRectangle); 126if (line.X1 == _lastRectangle.Left) 130offset.X = _lastRectangle.Left - mouseLoc.X; 136offset.X = _lastRectangle.Right - mouseLoc.X; 144if (line.Y1 == _lastRectangle.Top) 148offset.Y = _lastRectangle.Top - mouseLoc.Y; 150else if (line.Y1 == _lastRectangle.Bottom) 154offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 166if (Math.Max(line.Y1, line.Y2) <= _lastRectangle.Top) 170offset.Y = _lastRectangle.Top - mouseLoc.Y; 176offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 184if (Math.Max(line.X1, line.X2) <= _lastRectangle.Left) 188offset.X = _lastRectangle.Left - mouseLoc.X; 194offset.X = _lastRectangle.Right - mouseLoc.X; 213offset.X = _lastRectangle.Left - mouseLoc.X; 219offset.Y = _lastRectangle.Top - mouseLoc.Y; 316if (newRectangle != _lastRectangle) 325if (!_lastRectangle.IsEmpty) 328using Region invalidRegion = new(_lastRectangle);