43 references to ControlsInternal
System.Windows.Forms (43)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1448if (oldToolStripPanelRow is not null && oldToolStripPanelRow.ControlsInternal.Contains(this)) 1450oldToolStripPanelRow.ControlsInternal.Remove(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (6)
474controlToBeDragged.ToolStripPanelRow?.ControlsInternal.Remove(e.Control); 526foreach (Control control in row.ControlsInternal) 884&& previousRow.ControlsInternal.Count == 1 885&& previousRow.ControlsInternal.Contains(toolStripToDrag)) 910if (currentToolStripPanelRow is not null && currentToolStripPanelRow.ControlsInternal.Count == 1) 928if (currentToolStripPanelRow is not null && currentToolStripPanelRow.ControlsInternal.Count > 1)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (6)
76Control[] controls = new Control[ControlsInternal.Count]; 77ControlsInternal.CopyTo(controls, 0); 101internal ArrangedElementCollection Cells => ControlsInternal.Cells; 282ControlsInternal.Clear(); 331if (ControlsInternal.Count <= 0) 716if (ControlsInternal.Count == 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (13)
86for (int i = 0; i < Row.ControlsInternal.Count; i++) 88totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 148int index = Row.ControlsInternal.IndexOf(movingControl); 240if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) 355int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 358if (index < Row.ControlsInternal.Count - 1 /*not the last one in the row*/) 395if (!Row.ControlsInternal.Contains(toolStripToDrag)) 401if (Row.ControlsInternal.Count > 0) 428if (index < Row.ControlsInternal.Count) 430Row.ControlsInternal.Insert(index, toolStripToDrag); 434Row.ControlsInternal.Add(toolStripToDrag); 454if (index < Row.ControlsInternal.Count - 1) 525Row.ControlsInternal.Add(toolStripToDrag);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (3)
26foreach (Control control in Row.ControlsInternal) 72if (index >= 0 && index < Row.ControlsInternal.Count - 1) 126for (int i = index + 1; i < Row.ControlsInternal.Count; i++)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (13)
88for (int i = 0; i < Row.ControlsInternal.Count; i++) 90totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 150int index = Row.ControlsInternal.IndexOf(movingControl); 242if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) 402if (!Row.ControlsInternal.Contains(toolStripToDrag)) 407if (Row.ControlsInternal.Count > 0) 434if (index < Row.ControlsInternal.Count) 436Row.ControlsInternal.Insert(index, toolStripToDrag); 440Row.ControlsInternal.Add(toolStripToDrag); 461if (index < Row.ControlsInternal.Count - 1) 535Row.ControlsInternal.Add(toolStripToDrag); 565int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 568if (index < Row.ControlsInternal.Count - 1 /*not the last one in the row*/)