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