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