1 write to _primaryComponentIndex
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
990_primaryComponentIndex = i;
21 references to _primaryComponentIndex
System.Windows.Forms.Design (21)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (21)
441DropControl(_primaryComponentIndex, dragTarget, dragSource, localDrag); 442Point initialDropPoint = _behaviorServiceSource.AdornerWindowPointToScreen(_dragComponents[_primaryComponentIndex].draggedLocation); 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; 480SetLocationPropertyAndChildIndex(_primaryComponentIndex, dragTarget, initialDropPoint, 481_shareParent ? _dragComponents[_primaryComponentIndex].zorderIndex : 0, allowSetChildIndexOnDrop); 482selSvc?.SetSelectedComponents(new object[] { _dragComponents[_primaryComponentIndex].dragComponent }, SelectionTypes.Primary | SelectionTypes.Replace); 486if (i == _primaryComponentIndex) 583_statusCommandUITarget?.SetStatusInformation(selSvc is null ? _dragComponents[_primaryComponentIndex].dragComponent as Component : 739Point newPosition = new(mouseLoc.X - _initialMouseLoc.X + _dragComponents[_primaryComponentIndex].originalControlLocation.X, 740mouseLoc.Y - _initialMouseLoc.Y + _dragComponents[_primaryComponentIndex].originalControlLocation.Y); 745_dragComponents[_primaryComponentIndex].dragImage.Width, 746_dragComponents[_primaryComponentIndex].dragImage.Height); 781_dragComponents[_primaryComponentIndex].draggedLocation = MapPointFromTargetToSource(newPosition); 820if (_dragComponents[_primaryComponentIndex].dragComponent is Control c) 823Point dropPoint = _behaviorServiceSource.AdornerWindowPointToScreen(_dragComponents[_primaryComponentIndex].draggedLocation); 884if (_dragComponents[_primaryComponentIndex].dragComponent is Control) 995Debug.Assert(_primaryComponentIndex != -1, "primaryComponentIndex was not set!"); 1058primaryControlIndex = _primaryComponentIndex;