1 write to _resizeComponents
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
348_resizeComponents = new ResizeComponent[components.Count];
60 references to _resizeComponents
System.Windows.Forms.Design (60)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (60)
208for (int i = 0; i < _resizeComponents.Length; i++) 210_resizeComponents[i].resizeBounds = _resizeComponents[i].resizeControl.Bounds; 213components.Add(_resizeComponents[i].resizeControl); 218if (designerHost.GetDesigner(_resizeComponents[i].resizeControl) is ControlDesigner designer) 220_resizeComponents[i].resizeRules = designer.SelectionRules; 224Debug.Fail($"Initiating resize. Could not get the designer for {_resizeComponents[i].resizeControl}"); 225_resizeComponents[i].resizeRules = SelectionRules.None; 237if (_resizeComponents.Length == 1) 239string name = TypeDescriptor.GetComponentName(_resizeComponents[0].resizeControl); 242name = _resizeComponents[0].resizeControl.GetType().Name; 249locString = string.Format(SR.BehaviorServiceResizeControls, _resizeComponents.Length); 261else if (_resizeComponents.Length > 0) 264if (_resizeComponents[0].resizeControl is Control control && control.Parent is not null) 351_resizeComponents[i].resizeControl = components[i]; 378for (int i = 0; !_captureLost && i < _resizeComponents.Length; i++) 380Control control = _resizeComponents[i].resizeControl; 503if (_resizeComponents is null || _resizeComponents.Length == 0) 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; 618Rectangle controlBounds = new(_resizeComponents[0].resizeBounds.X, _resizeComponents[0].resizeBounds.Y, 619_resizeComponents[0].resizeBounds.Width, _resizeComponents[0].resizeBounds.Height); 633for (int i = 0; i < _resizeComponents.Length; i++) 635Control control = _resizeComponents[i].resizeControl; 640Rectangle baseBounds = _resizeComponents[i].resizeBounds; 665SelectionRules resizeRules = _resizeComponents[i].resizeRules; 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); 919if (_resizeComponents is not null && _resizeComponents.Length > 0) 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"]; 928for (int i = 0; i < _resizeComponents.Length; i++) 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)