1 write to _parentGridSize
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
273_parentGridSize = (Size)gridProp.GetValue(control.Parent);
17 references to _parentGridSize
System.Windows.Forms.Design (17)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (17)
96int xDelta = controlBounds.Right % _parentGridSize.Width; 97if (xDelta > _parentGridSize.Width / 2) 99rect.Width += _parentGridSize.Width - xDelta; 108int xDelta = controlBounds.Left % _parentGridSize.Width; 109if (xDelta > _parentGridSize.Width / 2) 111rect.X += _parentGridSize.Width - xDelta; 112rect.Width -= _parentGridSize.Width - xDelta; 123int yDelta = controlBounds.Bottom % _parentGridSize.Height; 124if (yDelta > _parentGridSize.Height / 2) 126rect.Height += _parentGridSize.Height - yDelta; 135int yDelta = controlBounds.Top % _parentGridSize.Height; 136if (yDelta > _parentGridSize.Height / 2) 138rect.Y += _parentGridSize.Height - yDelta; 139rect.Height -= _parentGridSize.Height - yDelta; 149rect.Width = Math.Max(rect.Width, _parentGridSize.Width); 150rect.Height = Math.Max(rect.Height, _parentGridSize.Height); 743if (!_parentGridSize.IsEmpty)