4 writes to dragComponent
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (4)
425_dragComponents[j].dragComponent = temp[j]; 514_dragComponents[i].dragComponent = originalControls[i]; 576_dragComponents[i].dragComponent = originalControls[i]; 947_dragComponents[i].dragComponent = _dragObjects[i];
19 references to dragComponent
System.Windows.Forms.Design (19)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (19)
231Control currentControl = _dragComponents[dragComponentIndex].dragComponent as Control; 264PropertyDescriptor propLoc = TypeDescriptor.GetProperties(_dragComponents[dragComponentIndex].dragComponent)["Location"]; 265if ((propLoc is not null) && (_dragComponents[dragComponentIndex].dragComponent is Control currentControl)) 365string name = TypeDescriptor.GetComponentName(_dragComponents[0].dragComponent); 368name = _dragComponents[0].dragComponent.GetType().Name; 408temp.Add(_dragComponents[i].dragComponent); 424originalControls.Add(_dragComponents[j].dragComponent); 448initialDropPoint = ((Control)_dragComponents[_primaryComponentIndex].dragComponent).Parent.PointToClient(initialDropPoint); 453if (((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).Parent.IsMirrored) 455initialDropPoint.Offset(-((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).Width, 0); 459Control primaryComponent = _dragComponents[_primaryComponentIndex].dragComponent as Control; 482selSvc?.SetSelectedComponents(new object[] { _dragComponents[_primaryComponentIndex].dragComponent }, SelectionTypes.Primary | SelectionTypes.Replace); 497selSvc?.SetSelectedComponents(new object[] { _dragComponents[i].dragComponent }, SelectionTypes.Add); 583_statusCommandUITarget?.SetStatusInformation(selSvc is null ? _dragComponents[_primaryComponentIndex].dragComponent as Component : 820if (_dragComponents[_primaryComponentIndex].dragComponent is Control c) 884if (_dragComponents[_primaryComponentIndex].dragComponent is Control) 988if (primaryControl.Equals(_dragComponents[i].dragComponent as Control)) 1061dragControls.Add(_dragComponents[i].dragComponent); 1116if (_dragComponents[i].dragComponent is Control c)