1 write to resizeControl
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
351_resizeComponents[i].resizeControl = components[i];
35 references to resizeControl
System.Windows.Forms.Design (35)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (35)
210_resizeComponents[i].resizeBounds = _resizeComponents[i].resizeControl.Bounds; 213components.Add(_resizeComponents[i].resizeControl); 218if (designerHost.GetDesigner(_resizeComponents[i].resizeControl) is ControlDesigner designer) 224Debug.Fail($"Initiating resize. Could not get the designer for {_resizeComponents[i].resizeControl}"); 239string name = TypeDescriptor.GetComponentName(_resizeComponents[0].resizeControl); 242name = _resizeComponents[0].resizeControl.GetType().Name; 264if (_resizeComponents[0].resizeControl is Control control && control.Parent is not null) 380Control control = _resizeComponents[i].resizeControl; 518propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 519propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 520propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 521propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"]; 545Control targetControl = _resizeComponents[0].resizeControl; 635Control control = _resizeComponents[i].resizeControl; 767propWidth.SetValue(_resizeComponents[i].resizeControl, bounds.Width); 773propHeight.SetValue(_resizeComponents[i].resizeControl, bounds.Height); 779propLeft.SetValue(_resizeComponents[i].resizeControl, bounds.X); 785propTop.SetValue(_resizeComponents[i].resizeControl, bounds.Y); 924PropertyDescriptor propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 925PropertyDescriptor propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 926PropertyDescriptor propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 927PropertyDescriptor propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"]; 930if (propWidth is not null && _resizeComponents[i].resizeControl.Width != _resizeComponents[i].resizeBounds.Width) 932propWidth.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Width); 935if (propHeight is not null && _resizeComponents[i].resizeControl.Height != _resizeComponents[i].resizeBounds.Height) 937propHeight.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Height); 940if (propTop is not null && _resizeComponents[i].resizeControl.Top != _resizeComponents[i].resizeBounds.Y) 942propTop.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Top); 945if (propLeft is not null && _resizeComponents[i].resizeControl.Left != _resizeComponents[i].resizeBounds.X) 947propLeft.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Left); 950if (_resizeComponents[i].resizeControl == _primaryControl && _statusCommandUI is not null)