128 references to
System.Windows.Forms (78)
System\Windows\Forms\Control.ControlCollection.ControlCollectionEnumerator.cs (1)
67
return _controls
[
_current];
System\Windows\Forms\Control.ControlCollection.cs (11)
81
int t = this
[
c].TabIndex;
193
if (controlsToLookIn
[
i] is null)
198
if (WindowsFormsUtils.SafeCompareStrings(controlsToLookIn
[
i].Name, key, ignoreCase: true))
200
foundControls.Add(controlsToLookIn
[
i]);
209
if (controlsToLookIn
[
i] is null)
214
if (controlsToLookIn
[
i].Controls.Count > 0)
217
FindInternal(key, true, controlsToLookIn
[
i].Controls, foundControls);
248
if (WindowsFormsUtils.SafeCompareStrings(this
[
_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
257
if (WindowsFormsUtils.SafeCompareStrings(this
[
i].Name, key, /* ignoreCase = */ true))
322
Remove(this
[
index]);
371
return this
[
index];
System\Windows\Forms\Control.cs (33)
3451
children
[
i].UseWaitCursor = value;
4830
Control child = children
[
i];
4865
children
[
i].DisposeAxControls();
5528
if (found is null || found._tabIndex > children
[
c]._tabIndex)
5530
found = children
[
c];
5540
if (found is null || found._tabIndex < children
[
c]._tabIndex)
5542
found = children
[
c];
5646
if (parentChildren
[
c]._tabIndex >= targetIndex)
5650
if (found is null || found._tabIndex > parentChildren
[
c]._tabIndex)
5655
if (parentChildren
[
c]._tabIndex != targetIndex || hitCtl)
5657
found = parentChildren
[
c];
5705
Control sibling = siblings
[
c];
6694
children
[
i].OnParentBackColorChanged(e);
6718
children
[
i].OnParentBackgroundImageChanged(e);
6761
children
[
i].OnParentBindingContextChanged(e);
6805
children
[
i].OnParentCursorChanged(e);
6827
children
[
i].OnParentDataContextChanged(e);
6876
children
[
i].OnParentEnabledChanged(e);
6920
children
[
i].OnParentFontChanged(e);
6947
children
[
i].OnParentForeColorChanged(e);
6975
children
[
i].OnParentRightToLeftChanged(e);
7157
children
[
i].OnParentBecameInvisible();
7257
Control child = children
[
i];
7277
children
[
i].OnTopMostActiveXParentChanged(e);
7709
children
[
i].OnParentInvalidated(e);
8103
children
[
i].OnSystemColorsChanged(EventArgs.Empty);
8843
Control child = Controls
[
i];
9262
Control childControl = children
[
i];
9543
Control child = children
[
i];
9632
children
[
i].Scale(factor);
9705
Control child = children
[
i];
9917
children
[
i].Scale(dx, dy);
11027
Control child = Controls
[
i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
432
if (children
[
i] is RadioButton radioButton
455
if (children
[
i] is RadioButton button)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (4)
52
if (this
[
i] == _owner._horizScrollBar || this
[
i] == _owner._vertScrollBar || this
[
i] == _owner._editingPanel)
58
Remove(this
[
i]);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
651
Control ctl = children
[
i];
725
Control target = children
[
i];
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
38
return owningTabPage.Controls
[
index].AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (6)
978
if (controlsToLookIn
[
i] is null)
983
if (controlsToLookIn
[
i] is MenuStrip menuStrip)
992
if (controlsToLookIn
[
i] is null)
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\ToolStripSettingsManager.cs (8)
241
if (controlsToLookIn
[
i] is null)
246
if (controlsToLookIn
[
i] is T control)
257
if (controlsToLookIn
[
i] is null or Form)
262
if ((controlsToLookIn
[
i].Controls is not null) && controlsToLookIn
[
i].Controls.Count > 0)
265
FindControls(searchAllChildren, controlsToLookIn
[
i].Controls, foundControls);
291
ResumeAllLayout(controlsCollection
[
i], performLayout);
304
SuspendAllLayout(controlsCollection
[
i]);
System\Windows\Forms\Form.cs (1)
3872
Control ctl = Controls
[
index];
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1034
ResumeAllLayout(controlsCollection
[
i], performLayout);
1054
SuspendAllLayout(controlsCollection
[
i]);
1964
children
[
i].ValidationCancelled = false;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
700
UpdateAnchorsIteratively(controls
[
i]);
System\Windows\Forms\MDI\MDIClient.cs (1)
243
if (Controls
[
i] is Form child && child.CanRecreateHandle() && child.WindowState == FormWindowState.Minimized)
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (1)
26
: owner.Controls
[
index].AccessibilityObject;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
341
Control current = Controls
[
i];
400
Control current = Controls
[
i];
803
Control ctl = Controls
[
i];
System.Windows.Forms.Design (45)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
443
if (Controls
[
i] is RadioButton button && Controls
[
i].TabIndex == nextTabIndex)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
535
listOfTrayControls.Add(tray.Controls
[
numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\CommandSet.cs (1)
2138
listOfTrayControls.Add(tray.Controls
[
numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\ComponentTray.cs (2)
223
if (children
[
i] is TrayControl tc)
1365
Control child = Controls
[
i];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
301
if (parent.Controls
[
i] == control)
421
Control child = control.Controls
[
i];
System\Windows\Forms\Design\ControlCommandSet.cs (14)
1513
if (found is null || found.TabIndex > ctlControls
[
c].TabIndex)
1515
found = ctlControls
[
c];
1549
if (parentControls
[
c] != ctl)
1554
if (parentControls
[
c].TabIndex >= targetIndex)
1559
if (found is null || found.TabIndex > parentControls
[
c].TabIndex)
1565
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
1567
found = parentControls
[
c];
1617
if (parentControls
[
c] != ctl)
1622
if (parentControls
[
c].TabIndex <= targetIndex)
1627
if (found is null || found.TabIndex < parentControls
[
c].TabIndex)
1633
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
1635
found = parentControls
[
c];
1682
if (found is null || found.TabIndex < ctlControls
[
c].TabIndex)
1684
found = ctlControls
[
c];
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (3)
72
if (_realCollection
[
i] is not null &&
73
_realCollection
[
i].Site is not null &&
74
TypeDescriptor.GetAttributes(_realCollection
[
i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
199
var currentControl = children
[
i];
601
control = children
[
_insertionIndex];
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
873
Control child = control.Controls
[
i];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
1177
TypeDescriptor.AddAttributes(Control.Controls
[
i], InheritanceAttribute.InheritedReadOnly);
2195
if (_realCollection
[
i] is not null &&
2196
_realCollection
[
i].Site is not null &&
2197
TypeDescriptor.GetAttributes(_realCollection
[
i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (2)
360
if (GetTabbable(ctl.Controls
[
n]))
420
ctlTab = control.Controls
[
i];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
339
if (parentControls
[
c] != ctl)
343
if (parentControls
[
c].TabIndex >= targetIndex)
346
if (found is null || found.TabIndex > parentControls
[
c].TabIndex)
351
if ((parentControls
[
c].Site is not null && parentControls
[
c].TabIndex != targetIndex) || hitCtl)
353
found = parentControls
[
c];
394
if (parentControls
[
c] != ctl)
398
if (parentControls
[
c].TabIndex <= targetIndex)
401
if (found is null || found.TabIndex < parentControls
[
c].TabIndex)
406
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
408
found = parentControls
[
c];
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1824
Assert.Equal(collection
[
expectedIndex], collection[key]);
1827
Assert.Equal(collection
[
expectedIndex], collection[key]);
1894
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
1909
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
117
Assert.Equal(tabControl.Controls
[
i], tabControl.TabPages[i]);