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)
83if (!_lastRectangle.IsEmpty) 85_behaviorService.Invalidate(_lastRectangle); 128if (line.X1 == _lastRectangle.Left) 132offset.X = _lastRectangle.Left - mouseLoc.X; 138offset.X = _lastRectangle.Right - mouseLoc.X; 146if (line.Y1 == _lastRectangle.Top) 150offset.Y = _lastRectangle.Top - mouseLoc.Y; 152else if (line.Y1 == _lastRectangle.Bottom) 156offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 168if (Math.Max(line.Y1, line.Y2) <= _lastRectangle.Top) 172offset.Y = _lastRectangle.Top - mouseLoc.Y; 178offset.Y = _lastRectangle.Bottom - mouseLoc.Y; 186if (Math.Max(line.X1, line.X2) <= _lastRectangle.Left) 190offset.X = _lastRectangle.Left - mouseLoc.X; 196offset.X = _lastRectangle.Right - mouseLoc.X; 215offset.X = _lastRectangle.Left - mouseLoc.X; 221offset.Y = _lastRectangle.Top - mouseLoc.Y; 320if (newRectangle != _lastRectangle) 329if (!_lastRectangle.IsEmpty) 332using Region invalidRegion = new(_lastRectangle);