1 write to _primaryControl
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
321_primaryControl = selSvc.PrimarySelection as Control;
11 references to _primaryControl
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (11)
165if (_primaryControl is not null) 167lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y + _primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always)); 173if (_primaryControl is not null) 175lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y - _primaryControl.Margin.Top, SnapLine.MarginTop, SnapLinePriority.Always)); 182if (_primaryControl is not null) 184lines.Add(new SnapLine(SnapLineType.Vertical, loc.X + _primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always)); 190if (_primaryControl is not null) 192lines.Add(new SnapLine(SnapLineType.Vertical, loc.X - _primaryControl.Margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always)); 824if (control == _primaryControl && _statusCommandUI is not null) 950if (_resizeComponents[i].resizeControl == _primaryControl && _statusCommandUI is not null) 952_statusCommandUI.SetStatusInformation(_primaryControl);