20 references to Control
System.Windows.Forms (20)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
1060if (cell.Control is not null) 1062ToolStripPanelRow? currentlyAssignedRow = ((ISupportToolStripPanel)cell.Control).ToolStripPanelRow; 1072Debug.Fail($"Detected orphan cell! {cell.Control.Name} is in row {goodRowIndex}. It shouldn't have a cell in {i}! \r\n\r\nTurn on DEBUG_PAINT in ToolStripPanel and ToolStripPanelRow to investigate.");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (12)
115if (Control is not null && ToolStripPanelRow is not null && Control.ParentInternal == ToolStripPanelRow.ToolStripPanel) 124Control.Visible = value; 160if (MaximumSize.Height >= Control.PreferredSize.Height) 169if (MaximumSize.Height + growBy >= Control.PreferredSize.Height) 171int freed = Control.PreferredSize.Height - MaximumSize.Height; 179if (MaximumSize.Height + growBy < Control.PreferredSize.Height) 193if (MaximumSize.Width >= Control.PreferredSize.Width) 202if (MaximumSize.Width + growBy >= Control.PreferredSize.Width) 204int freed = Control.PreferredSize.Width - MaximumSize.Width; 212if (MaximumSize.Width + growBy < Control.PreferredSize.Width) 395if (!Control.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
460Size minSize = GetMinimumSize((ToolStrip)currentCell.Control); 557Size minSize = GetMinimumSize((ToolStrip)currentCell.Control);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
152return cell.Control; 163if (cell.Control == c)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.ToolStripPanelCellToControlEnumerator.cs (1)
30return cell?.Control;