20 references to Control
System.Windows.Forms (20)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
1052
if (cell.
Control
is not null)
1054
ToolStripPanelRow? currentlyAssignedRow = ((ISupportToolStripPanel)cell.
Control
).ToolStripPanelRow;
1064
Debug.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)
115
if (
Control
is not null && ToolStripPanelRow is not null &&
Control
.ParentInternal == ToolStripPanelRow.ToolStripPanel)
124
Control
.Visible = value;
160
if (MaximumSize.Height >=
Control
.PreferredSize.Height)
169
if (MaximumSize.Height + growBy >=
Control
.PreferredSize.Height)
171
int freed =
Control
.PreferredSize.Height - MaximumSize.Height;
179
if (MaximumSize.Height + growBy <
Control
.PreferredSize.Height)
193
if (MaximumSize.Width >=
Control
.PreferredSize.Width)
202
if (MaximumSize.Width + growBy >=
Control
.PreferredSize.Width)
204
int freed =
Control
.PreferredSize.Width - MaximumSize.Width;
212
if (MaximumSize.Width + growBy <
Control
.PreferredSize.Width)
395
if (!
Control
.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
460
Size minSize = GetMinimumSize((ToolStrip)currentCell.
Control
);
557
Size minSize = GetMinimumSize((ToolStrip)currentCell.
Control
);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
152
return cell.
Control
;
163
if (cell.
Control
== c)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.ToolStripPanelCellToControlEnumerator.cs (1)
30
return cell?.
Control
;