478 references to Controls
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
45 ((BlazorWebViewControlCollection)Controls).AddInternal(_webview);
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (4)
70Controls.Add(TextBox) 71Controls.Add(Label) 72Controls.Add(OKButton) 73Controls.Add(MyCancelButton)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (3)
149Controls.Add(ButtonCloseDialog) 150Controls.Add(ProgressBarWork) 151Controls.Add(LabelInfo)
PresentationUI (106)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (7)
137this._tabControl.Controls.Add(this._summaryTab); 138this._tabControl.Controls.Add(this._infoTab); 151this._summaryTab.Controls.Add(this.tableLayoutPanel1); 423this._infoTab.Controls.Add(this.tableLayoutPanel2); 523this._documentDetailBox.Controls.Add(this._documentTable); 647this._fileSystemBox.Controls.Add(this._fileTable); 731this.Controls.Add(this.tableLayoutPanel3);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (5)
77this._buttonFlowLayoutPanel.Controls.Add(this._cancelButton); 78this._buttonFlowLayoutPanel.Controls.Add(this._okButton); 116this._listButtonFlowLayoutPanel.Controls.Add(this._addButton); 117this._listButtonFlowLayoutPanel.Controls.Add(this._removeButton); 166this.Controls.Add(this._mainDialogTableLayoutPanel);
MS\Internal\Documents\DialogBaseForm.cs (1)
96foreach (Control c in control.Controls)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (3)
59_buttomControlLayoutpanel.Controls.Add(_cancelButton); 60_buttomControlLayoutpanel.Controls.Add(_addButton); 221Controls.Add(_mainDialogTableLayoutPanel);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (14)
64_panel1.Controls.Add(_flowLayoutPanel2); 65_panel1.Controls.Add(_flowLayoutPanel1); 75_flowLayoutPanel2.Controls.Add(_flowLayoutPanel3); 86_flowLayoutPanel3.Controls.Add(_flowLayoutPanel4); 87_flowLayoutPanel3.Controls.Add(_panel2); 96_flowLayoutPanel4.Controls.Add(_label1); 97_flowLayoutPanel4.Controls.Add(_label2); 98_flowLayoutPanel4.Controls.Add(_label3); 99_flowLayoutPanel4.Controls.Add(_privacyLabel); 100_flowLayoutPanel4.Controls.Add(_instructionlabel); 159_panel2.Controls.Add(_pictureBox); 177_flowLayoutPanel1.Controls.Add(_nextButton); 178_flowLayoutPanel1.Controls.Add(_cancelButton); 209Controls.Add(_panel1);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (9)
63this._flowLayoutPanel1.Controls.Add(this._nextButton); 64this._flowLayoutPanel1.Controls.Add(this._cancelButton); 94this._flowLayoutPanel2.Controls.Add(this._label1); 95this._flowLayoutPanel2.Controls.Add(this._flowLayoutPanel3); 96this._flowLayoutPanel2.Controls.Add(this._tableLayoutPanel1); 117this._flowLayoutPanel3.Controls.Add(this._pictureBox1); 118this._flowLayoutPanel3.Controls.Add(this._label2); 214this.Controls.Add(this._flowLayoutPanel2); 215this.Controls.Add(this._flowLayoutPanel1);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (2)
66this.flowLayoutPanel2.Controls.Add(this.label2); 125this.Controls.Add(this.tableLayoutPanel1);
MS\Internal\Documents\RMPermissions.cs (1)
188permissionsFlowPanel.Controls.Add(permissionLabel);
MS\Internal\Documents\RMPermissions.Designer.cs (15)
61this.mainContentFlowPanel.Controls.Add(this.authenticatedAsFlowPanel); 62this.mainContentFlowPanel.Controls.Add(this.permissionsFlowPanel); 63this.mainContentFlowPanel.Controls.Add(this.contactFlowPanel); 64this.mainContentFlowPanel.Controls.Add(this.expirationFlowPanel); 65this.mainContentFlowPanel.Controls.Add(this.divider); 66this.mainContentFlowPanel.Controls.Add(this.actionsFlowPanel); 75this.authenticatedAsFlowPanel.Controls.Add(this.authenticatedAsTextLabel); 76this.authenticatedAsFlowPanel.Controls.Add(this.authenticatedAsLabel); 95this.permissionsFlowPanel.Controls.Add(this.permissionsHeldLabel); 108this.contactFlowPanel.Controls.Add(this.requestFromTextLabel); 109this.contactFlowPanel.Controls.Add(this.requestFromLabel); 129this.expirationFlowPanel.Controls.Add(this.expiresOnTextLabel); 130this.expirationFlowPanel.Controls.Add(this.expiresOnLabel); 147this.actionsFlowPanel.Controls.Add(this.closeButton); 188this.Controls.Add(this.mainContentFlowPanel);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (28)
78this.flowLayoutPanelMain.Controls.Add(this.radioButtonUnrestricted); 79this.flowLayoutPanelMain.Controls.Add(this.radioButtonPermissions); 80this.flowLayoutPanelMain.Controls.Add(this.radioButtonTemplate); 81this.flowLayoutPanelMain.Controls.Add(this.groupBoxMainContent); 82this.flowLayoutPanelMain.Controls.Add(this.flowLayoutPanelActions); 119this.groupBoxMainContent.Controls.Add(this.flowLayoutPanelUnrestricted); 120this.groupBoxMainContent.Controls.Add(this.flowLayoutPanelPermissions); 121this.groupBoxMainContent.Controls.Add(this.flowLayoutPanelTemplate); 131this.flowLayoutPanelUnrestricted.Controls.Add(this.textBoxUnrestrictedText); 140this.flowLayoutPanelPermissions.Controls.Add(this.flowLayoutPanelPeople); 141this.flowLayoutPanelPermissions.Controls.Add(this.rightsTable); 142this.flowLayoutPanelPermissions.Controls.Add(this.flowLayoutPanelContact); 143this.flowLayoutPanelPermissions.Controls.Add(this.flowLayoutPanelExpires); 151this.flowLayoutPanelTemplate.Controls.Add(this.labelSelectTemplate); 152this.flowLayoutPanelTemplate.Controls.Add(this.comboBoxTemplates); 187this.flowLayoutPanelPeople.Controls.Add(this.buttonPeoplePicker); 188this.flowLayoutPanelPeople.Controls.Add(this.textBoxUserName); 189this.flowLayoutPanelPeople.Controls.Add(this.buttonAddUser); 190this.flowLayoutPanelPeople.Controls.Add(this.buttonEveryone); 191this.flowLayoutPanelPeople.Controls.Add(this.buttonRemoveUser); 249this.flowLayoutPanelContact.Controls.Add(this.checkBoxPermissionsContact); 250this.flowLayoutPanelContact.Controls.Add(this.textBoxPermissionsContact); 274this.flowLayoutPanelExpires.Controls.Add(this.checkBoxValidUntil); 275this.flowLayoutPanelExpires.Controls.Add(this.datePickerValidUntil); 300this.flowLayoutPanelActions.Controls.Add(this.buttonCancel); 301this.flowLayoutPanelActions.Controls.Add(this.buttonSave); 302this.flowLayoutPanelActions.Controls.Add(this.buttonSaveAs); 375this.Controls.Add(this.flowLayoutPanelMain);
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
276_columnHeaderPanel.Controls.Add(nameHeader); 277_columnHeaderPanel.Controls.Add(intentHeader); 278_columnHeaderPanel.Controls.Add(locationHeader); 279_columnHeaderPanel.Controls.Add(signByHeader); 306_columnHeaderPanel.Controls.Add(statusHeader); 307_columnHeaderPanel.Controls.Add(intentHeader);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (9)
70_flowpanelMiddleControls.Controls.Add(_buttonViewCert); 71_flowpanelMiddleControls.Controls.Add(_buttonSign); 72_flowpanelMiddleControls.Controls.Add(_buttonRequestAdd); 73_flowpanelMiddleControls.Controls.Add(_buttonRequestDelete); 86_flowpanelBottomControls.Controls.Add(_buttonDone); 166_listboxMainPanel.Controls.Add(_listboxItemPanel); 167_listboxMainPanel.Controls.Add(_columnHeaderPanel); 175_listboxItemPanel.Controls.Add(_listBoxSummary); 207Controls.Add(_mainLayoutTable);
MS\Internal\Documents\SigningDialog.Designer.cs (5)
63_userInputFlowPanel.Controls.Add(_signatureControlInputLayoutTable); 181_buttonflowLayoutPanel.Controls.Add(_cancelButton); 182_buttonflowLayoutPanel.Controls.Add(_signButton); 183_buttonflowLayoutPanel.Controls.Add(_signSaveAsButton); 260Controls.Add(_mainLayoutTable);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
60Controls.Add(_label);
System.Windows.Forms (134)
System\Windows\Forms\Accessibility\AccessibleObject.EnumVariantObject.cs (1)
155/// <see cref="Control.Controls"/> collection).
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
363foreach (Control child in control.Controls)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
720foreach (Control c in control.Controls)
System\Windows\Forms\Control.ControlCollection.cs (3)
70value._parent?.Controls.Remove(value); 214if (controlsToLookIn[i].Controls.Count > 0) 217FindInternal(key, true, controlsToLookIn[i].Controls, foundControls);
System\Windows\Forms\Control.cs (18)
2719value.Controls.Add(this); 2723_parent?.Controls.Remove(this); 4397_parent.Controls.SetChildIndex(this, 0); 4824_parent?.Controls.Remove(this); 5495List<ControlTabOrderHolder> holders = new(Controls.Count); 5497foreach (Control c in Controls) 5689string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent)); 5697nameof(Controls), 8550foreach (Control c in Controls) 8842int count = Controls.Count; 8845Control child = Controls[i]; 8866if (Controls.Count == 0) 10048_parent.Controls.SetChildIndex(this, -1); 10956int currentIndex = Controls.GetChildIndex(control); 10963newIndex = Controls.GetChildIndex(previousControl, throwException: false) + 1; 10975Controls.SetChildIndex(control, newIndex); 11027for (int i = Controls.GetChildIndex(control); --i >= 0;) 11029Control child = Controls[i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
429ControlCollection children = parent.Controls; 452ControlCollection children = parent.Controls;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
462Controls.Add(_horizScrollBar); 469Controls.Add(_vertScrollBar);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6234Debug.Assert(_editingPanel is null || _editingPanel.Controls.Count == 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
1064Debug.Assert(dataGridView.EditingPanel.Controls.Contains(dataGridView.EditingControl)); 1065dataGridView.EditingPanel.Controls.Remove(dataGridView.EditingControl); 1080Debug.Assert(dataGridView.Controls.Contains(dataGridView.EditingPanel)); 1081((DataGridView.DataGridViewControlCollection)dataGridView.Controls).RemoveInternal(dataGridView.EditingPanel); 1087Debug.Assert(dataGridView.EditingPanel.Controls.Count == 0); 2469dgv.Controls.Add(dgv.EditingPanel); 2470dgv.EditingPanel.Controls.Add(dgv.EditingControl);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
542get => base.Controls;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
82Controls.Add(_label);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
50foreach (Control control in Controls) 270Controls.Add(_detailsTextBox); 271Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
51Controls.Add(_titleLabel); 52Controls.Add(_descriptionLabel);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
494Controls.Add(_scrollBar); 896Controls.Add(control);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
567Controls.Remove(_currentControl); 574Controls.Remove(_createNewLinkLabel); 598Controls.Add(control); 652Controls.Add(CreateNewLink);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
646ControlCollection children = parent.Controls; 720ControlCollection children = parent.Controls;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1589Controls.Clear();
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
85_owner.Controls.Add(value); 228_owner.Controls.Add(tabPage); 235_owner.Controls.SetChildIndex(tabPage, index); 319_owner.Controls.Remove(value); 334public void RemoveAt(int index) => _owner.Controls.RemoveAt(index);
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (3)
33if (index < 0 || index > owningTabPage.Controls.Count - 1) 38return owningTabPage.Controls[index].AccessibilityObject; 44=> this.IsOwnerHandleCreated(out TabPage? owningTabPage) ? owningTabPage.Controls.Count : -1;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
469get => base.Controls;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
347get => base.Controls;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
967return GetFirstMenuStripRecursive(control.Controls); 997if ((controlsToLookIn[i].Controls is not null) && controlsToLookIn[i].Controls.Count > 0) 1000MenuStrip? menuStrip = GetFirstMenuStripRecursive(controlsToLookIn[i].Controls);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (8)
517if (Controls.Count > 0) 521Control[] controls = new Control[Controls.Count]; 522Point[] controlLocations = new Point[Controls.Count]; 534Controls.Clear(); 614ToolStripPanelControlCollection? controls = Controls as ToolStripPanelControlCollection; 765Controls.Add(toolStripToDrag); 1079foreach (Control c1 in Controls) 1081foreach (Control c2 in Controls)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
228_owner.ToolStripPanel.Controls.Remove(control);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
29FindControls(true, _form.Controls, toolStripControls); 51FindControls(true, _form.Controls, toolStripControls); 135FindControls(true, _form.Controls, toolStripPanels); 139foreach (Control c in toolStripPanel.Controls) 215FindControls(true, _form.Controls, toolStripControls); 262if ((controlsToLookIn[i].Controls is not null) && controlsToLookIn[i].Controls.Count > 0) 265FindControls(searchAllChildren, controlsToLookIn[i].Controls, foundControls); 287Control.ControlCollection controlsCollection = start.Controls; 301Control.ControlCollection controlsCollection = start.Controls;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
65Controls.AddRange([_upDownButtons, _upDownEdit]);
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
262foreach (Control c in ctl.Controls)
System\Windows\Forms\Design\ComponentEditorForm.cs (2)
293Controls.Clear(); 294Controls.AddRange(
System\Windows\Forms\Design\ComponentEditorPage.cs (1)
228site?.GetControl()?.Controls.Add(this);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (5)
263Controls.Add(_pictureBox); 268Controls.Add(_message); 305Controls.Add(button); 316Controls.Add(button); 330Controls.Add(_details);
System\Windows\Forms\Form.cs (7)
1103Controls.Add(new MdiClient()); 3868if (Controls.Count > 1) 3870for (int index = 0; index < Controls.Count; index++) 3872Control ctl = Controls[index]; 4315foreach (Control c in Controls) 4649foreach (Control c in Controls) 5161foreach (Control control in Controls)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
610foreach (Control c in start.Controls) 1027ControlCollection controlsCollection = start.Controls; 1048ControlCollection controlsCollection = start.Controls; 1244if (Controls.Count == 0) 1960ControlCollection children = Controls;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
279get => base.Controls; 1794if ((Panel1.Controls.Count > 0 || Panel2.Controls.Count > 0) || TabStop) 2031foreach (Control child in control.Controls)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
702ControlCollection controls = control.Controls;
System\Windows\Forms\MDI\MDIClient.cs (2)
239for (int i = 0; i < Controls.Count; i++) 243if (Controls[i] is Form child && child.CanRecreateHandle() && child.WindowState == FormWindowState.Minimized)
System\Windows\Forms\MDI\MDIWindowDialog.cs (2)
137Controls.Add(_okCancelTableLayoutPanel); 138Controls.Add(_itemList);
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (3)
24!this.IsOwnerHandleCreated(out Panel? owner) || index < 0 || index >= owner.Controls.Count 26: owner.Controls[index].AccessibilityObject; 31=> this.IsOwnerHandleCreated(out Panel? owner) ? owner.Controls.Count : -1;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
100public new TableLayoutControlCollection Controls => (TableLayoutControlCollection)base.Controls;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
44foreach (Control tableControl in appliedControl.Controls)
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
81Controls.Add(_tableLayoutPanel);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
77Controls.Add(_hScrollBar); 90Controls.Add(_vScrollBar);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
967Controls.Add(_previewControl); 968Controls.Add(_toolStrip1);
System\Windows\Forms\Scrolling\ScrollableControl.cs (8)
327if (Controls.Count != 0) 339for (int i = 0; i < Controls.Count; i++) 341Control current = Controls[i]; 392else if (Controls.Count != 0) 395for (int i = 0; i < Controls.Count; i++) 400Control current = Controls[i]; 801for (int i = 0; i < Controls.Count; i++) 803Control ctl = Controls[i];
System.Windows.Forms.Design (227)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
204_groupBoxMode.Controls.Add(_radioButtonsTableLayoutPanel); 285Controls.Add(_overarchingTableLayoutPanel);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
514Controls.Add(_overArchingTableLayoutPanel);
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
25foreach (Control c in Parent.Controls)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
66Controls.Add(_monthCalendar);
System\ComponentModel\Design\DesignerActionPanel.cs (3)
868oldLine.RemoveControls(Controls); 880Controls.AddRange(controls); 891excessLine.RemoveControls(Controls);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
34Controls.Add(hostedControl);
System\ComponentModel\Design\ToolStripContainerActionList.cs (8)
53foreach (Control control in panel.Controls) 100&& root.Controls.Count > 1; 115root.Controls.Add(_toolStripContainer); 134|| root.Controls.Count <= 1) 149Control[] childControls = new Control[root.Controls.Count]; 150root.Controls.CopyTo(childControls, 0); 176oldParent.Controls.Remove(control); 182newParent.Controls.Add(control);
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorTabControl.cs (2)
21if (selectedTab is not null && selectedTab.Controls.Count > 0) 23selectedTab.Controls[0].Focus();
System\Drawing\Design\ColorEditor.ColorUI.cs (6)
223_paletteTabPage.Controls.Add(_pal); 224_systemTabPage.Controls.Add(_lbSystem); 225_commonTabPage.Controls.Add(_lbCommon); 227Controls.Add(_tabControl); 325if (selectedPage is not null && selectedPage.Controls.Count > 0) 327selectedPage.Controls[0].Focus();
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (8)
106protected override ControlCollection SelectionOptions => Controls; 209Controls.Clear(); 250Controls.AddRange( 434nextTabIndex = Controls.Count - 1; 436else if (nextTabIndex >= Controls.Count) 441for (int i = 0; i < Controls.Count; i++) 443if (Controls[i] is RadioButton button && Controls[i].TabIndex == nextTabIndex)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (4)
122Controls.Clear(); 123Controls.AddRange( 128_container.Controls.Clear(); 129_container.Controls.AddRange(
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (12)
218foreach (Control control in c.Controls) 256dragSource.Controls.Remove(currentControl); 258dragTarget.Controls.Add(currentControl); 284dragTarget.Controls.SetChildIndex(currentControl, newIndex); 402numberOfOriginalTrayControls = tray is not null ? tray.Controls.Count : 0; 502componentChangeSvcTarget.OnComponentChanged(dragTarget, targetProp, dragTarget.Controls, dragTarget.Controls); 505componentChangeSvcSource.OnComponentChanged(dragSource, sourceProp, dragSource.Controls, dragSource.Controls); 528int numberOfTrayControlsAdded = tray.Controls.Count - numberOfOriginalTrayControls; 535listOfTrayControls.Add(tray.Controls[numberOfOriginalTrayControls + i]); 966_dragComponents[i].zorderIndex = primaryParent.Controls.GetChildIndex(dragControl, false /*throwException*/);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
116foreach (Control control in parent.Controls)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
169oldParent.Controls.Remove(control); 175newParent.Controls.Add(control);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
158Controls.Add(_tableLayoutPanel);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
71oldParent.Controls.Remove(toolStrip); 78newParent.Controls.Add(toolStrip);
System\Windows\Forms\Design\CommandSet.cs (9)
1780if (controlCommonParent.Controls.Count > 0) 1782Control? parent = controlCommonParent.Controls[0]; 1849int numberOfOriginalTrayControls = tray is not null ? tray.Controls.Count : 0; 2132int numberOfTrayControlsAdded = tray.Controls.Count - numberOfOriginalTrayControls; 2139listOfTrayControls.Add(tray.Controls[numberOfOriginalTrayControls + i]); 3302foreach (Control child in parentControl.Controls) 3435foreach (Control c in parentControl.Controls) 3513return c1.Parent == c2.Parent && c1.Parent is not null ? c1.Parent.Controls.GetChildIndex(c1) - c1.Parent.Controls.GetChildIndex(c2) : 1;
System\Windows\Forms\Design\ComponentTray.cs (6)
215ControlCollection children = Controls; 438get => Controls.Count; 704Controls.Add(trayctl); 1007foreach (Control control in Controls) 1362int controlCount = Controls.Count; 1365Control child = Controls[i];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (7)
83foreach (Control child in parent.Controls) 99foreach (Control control in parent.Controls) 127foreach (Control control in parent.Controls) 299for (int i = 0; i < parent.Controls.Count; i++) 301if (parent.Controls[i] == control) 417for (int i = control.Controls.Count - 1; i >= 0; i--) 421Control child = control.Controls[i];
System\Windows\Forms\Design\ControlCommandSet.cs (10)
1136if (_baseControl is not null && _baseControl.Controls.Count > 0) 1386if (current.Controls.Count > 0) 1388next = current.Controls[0]; 1503Control.ControlCollection ctlControls = ctl.Controls; 1535Control.ControlCollection parentControls = p.Controls; 1603Control.ControlCollection parentControls = p.Controls; 1671Control.ControlCollection ctlControls = ctl.Controls; 1690ctlControls = ctl.Controls; 1733else if (parent.Controls.GetChildIndex(cX) > parent.Controls.GetChildIndex(cY))
System\Windows\Forms\Design\ControlDesigner.cs (6)
115foreach (Control control in Control.Controls) 877foreach (Control child in firstChild.Controls) 1131foreach (Control control in Control.Controls) 1181foreach (Control c in parentControl.Controls) 1690foreach (Control child in firstChild.Controls) 2510foreach (Control c in Control.Controls)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
20public DesignerControlCollection(Control owner) : base(owner) => _realCollection = owner.Controls;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
457Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
222_previewGroupBox.Controls.Add(_sampleViewTableLayoutPanel); 240Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
616Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
33Controls.Add(_typesListBox);
System\Windows\Forms\Design\DesignBindingPicker.cs (19)
199_addNewPanel.Controls.Add(_addNewCtrl); 200_addNewPanel.Controls.Add(addNewIcon); 201_addNewPanel.Controls.Add(addNewDiv); 203_helpTextPanel.Controls.Add(_helpTextCtrl); 204_helpTextPanel.Controls.Add(helpTextDiv); 208Controls.Add(_addNewPanel); 209Controls.Add(_helpTextPanel); 306_addNewPanel.Controls.Add(_addNewCtrl); 307_addNewPanel.Controls.Add(addNewIcon); 308_addNewPanel.Controls.Add(addNewDiv); 332_helpTextPanel.Controls.Add(_helpTextCtrl); 333_helpTextPanel.Controls.Add(helpTextDiv); 337Controls.Add(_treeViewCtrl); 338Controls.Add(_addNewPanel); 339Controls.Add(_helpTextPanel); 463_addNewPanel.Controls.Clear(); 464_helpTextPanel.Controls.Clear(); 465Controls.Remove(_addNewPanel); 466Controls.Remove(_helpTextPanel);
System\Windows\Forms\Design\DesignerFrame.cs (9)
48Controls.Add(_designerRegion); 103_designerRegion.Controls.Add(_designer); 290Controls.Add(_splitter); 291Controls.Add(window); 301Controls.Remove(window); 302Controls.Remove(_splitter); 315List<ThemedScrollbarWindow> windows = new(Controls.Count); 316foreach (Control c in Controls) 544foreach (Control c in Owner!.Controls)
System\Windows\Forms\Design\DockEditor.DockUI.cs (5)
169protected override ControlCollection SelectionOptions => _container.Controls; 205Controls.Clear(); 206Controls.Add(_container); 208_container.Controls.Clear(); 209_container.Controls.AddRange(
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (6)
78foreach (object child in Control.Controls) 170var children = Control.Controls; 598var children = Control.Controls; 733Control.Controls.SetChildIndex(e.Control, _insertionIndex); 886_insertionIndex = FlowLayoutPanel.Controls.Count; 902Control.Controls.Contains(_primaryDragControl))
System\Windows\Forms\Design\FlowPanelDesigner.cs (1)
37internal override void AddChildControl(Control newChild) => Control.Controls.Add(newChild);
System\Windows\Forms\Design\FormatControl.Designer.cs (3)
60formatGroupBox.Controls.Add(this.tableLayoutPanel3); 92sampleGroupBox.Controls.Add(this.sampleLabel); 175Controls.Add(formatGroupBox);
System\Windows\Forms\Design\FormatStringDialog.cs (3)
214Controls.Add(_okButton); 215Controls.Add(_formatControl1); 216Controls.Add(_cancelButton);
System\Windows\Forms\Design\InheritanceUI.cs (2)
68foreach (Control child in c.Controls) 93foreach (Control child in c.Controls)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (3)
102Controls.Add(_okCancelTableLayoutPanel); 103Controls.Add(_sampleEdit); 104Controls.Add(_caption);
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
282Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
46Controls.Add(_cloneMtb);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
312DisableDragDropChildren(c.Controls, allowDropCache); 516DisableDragDropChildren(ctl.Controls, allowDropChanged);
System\Windows\Forms\Design\ParentControlDesigner.cs (29)
192foreach (Control child in Control.Controls) 270foreach (Control child in Control.Controls) 408foreach (Control child in Control.Controls) 428Control.Controls.Add(newChild); 429Control.Controls.SetChildIndex(newChild, 0); 588_changeService?.OnComponentChanged(Control, controlsProp, Control.Controls, Control.Controls); 608Control[] children = new Control[parent.Controls.Count]; 609parent.Controls.CopyTo(children, 0); 652parent.Controls.Add(children[i]); 656int childIndex = parent.Controls.GetChildIndex(children[i]); 657parent.Controls.Remove(children[i]); 658parent.Controls.Add(children[i]); 659parent.Controls.SetChildIndex(children[i], childIndex); 869int controlCount = control.Controls.Count; 873Control child = control.Controls[i]; 2170oldParent.Controls.Remove(control); 2174newParent.Controls.Add(control); 2183if (oldParent.Controls.Contains(newParent)) 2406cParent.Controls.Remove(c); 2407_changeService?.OnComponentChanged(cParent, controlsProp, cParent.Controls, cParent.Controls); 2415parent.Controls.Add(c); 2419_changeService?.OnComponentChanged(parent, controlsProp, parent.Controls, parent.Controls); 2424int childIndex = parent.Controls.GetChildIndex(c); 2425parent.Controls.Remove(c); 2426parent.Controls.Add(c); 2427parent.Controls.SetChildIndex(c, childIndex);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
216Controls.AddRange([_innerPanel, _outerPanel]);
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
148components.AddRange(panel.Controls.Cast<Control>());
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
132if (_splitterPanel.Controls.Count == 0) 211if (_splitterPanel.Controls.Count == 0)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
123Controls.Add(_overarchingLayoutPanel);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
373_sizeTypeGroupBox.Controls.Add(_sizeTypeTableLayoutPanel); 442Controls.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\TabControlDesigner.cs (3)
75_removeVerb.Enabled = Control.Controls.Count > 0; 114_removeVerb?.Enabled = Control.Controls.Count > 0; 277tc.Controls.Add(page);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1175for (int i = 0; i < Control.Controls.Count; i++) 1177TypeDescriptor.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Design\TabOrder.cs (5)
358for (int n = 0; n < ctl.Controls.Count; n++) 360if (GetTabbable(ctl.Controls[n])) 417int count = control.Controls.Count; 420ctlTab = control.Controls[i]; 427if (ctlTab.Controls.Count > 0)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
308Controls.Add(_tableLayoutPanel);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
153foreach (Control control in parent.Controls)
System\Windows\Forms\Design\ToolStripDesigner.cs (13)
1488parentMenu = parentForm.Controls.OfType<MenuStrip>().FirstOrDefault(); 1492parentForm.Controls.Remove(parentMenu); 1516parentForm.Controls.Add(menuStrip); 1540_componentChangeService?.OnComponentChanged(parentPanel, controlsProp, parentPanel.Controls, parentPanel.Controls); 1557foreach (Control c in parent.Controls) 1561index = parent.Controls.IndexOf(c); 1568index = parent.Controls.Count - 1; 1571parent.Controls.SetChildIndex(ToolStrip, index); 1578foreach (Control c in parent.Controls) 1590index = parent.Controls.IndexOf(c); 1598index = parent.Controls.Count; 1601parent.Controls.SetChildIndex(ToolStrip, index - 1);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
268form.Controls.Remove(_designMenu); 389form.Controls.Add(_designMenu);
System\Windows\Forms\Design\ToolStripEditorManager.cs (3)
57_behaviorService.AdornerWindowControl.Controls.Remove(_editor); 87_behaviorService.AdornerWindowControl.Controls.Add(_editor); 130Controls.Add(editorToolStrip);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (5)
330Control.ControlCollection parentControls = p.Controls; 385Control.ControlCollection parentControls = p.Controls; 790selSvc.SetSelectedComponents(parentToolStripPanel.Controls, SelectionTypes.Replace); 1682next = current.Controls.Count > 0 ? current.Controls[0] : (object)current;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
382if (Control.Controls.Count == 0)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
335Controls.Add(_overarchingTableLayoutPanel);
WindowsFormsIntegration (3)
System\Windows\Integration\WindowsFormsHost.cs (3)
728{ Controls.Remove(Child); } 731{ Controls.Add(value); } 805Controls.Add(_focusTarget);