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)
3363
children
[
i].UseWaitCursor = value;
4742
Control child = children
[
i];
4777
children
[
i].DisposeAxControls();
5405
if (found is null || found._tabIndex > children
[
c]._tabIndex)
5407
found = children
[
c];
5417
if (found is null || found._tabIndex < children
[
c]._tabIndex)
5419
found = children
[
c];
5523
if (parentChildren
[
c]._tabIndex >= targetIndex)
5527
if (found is null || found._tabIndex > parentChildren
[
c]._tabIndex)
5532
if (parentChildren
[
c]._tabIndex != targetIndex || hitCtl)
5534
found = parentChildren
[
c];
5582
Control sibling = siblings
[
c];
6569
children
[
i].OnParentBackColorChanged(e);
6593
children
[
i].OnParentBackgroundImageChanged(e);
6636
children
[
i].OnParentBindingContextChanged(e);
6680
children
[
i].OnParentCursorChanged(e);
6702
children
[
i].OnParentDataContextChanged(e);
6751
children
[
i].OnParentEnabledChanged(e);
6795
children
[
i].OnParentFontChanged(e);
6822
children
[
i].OnParentForeColorChanged(e);
6850
children
[
i].OnParentRightToLeftChanged(e);
7035
children
[
i].OnParentBecameInvisible();
7135
Control child = children
[
i];
7155
children
[
i].OnTopMostActiveXParentChanged(e);
7589
children
[
i].OnParentInvalidated(e);
7983
children
[
i].OnSystemColorsChanged(EventArgs.Empty);
8732
Control child = Controls
[
i];
9147
Control childControl = children
[
i];
9412
Control child = children
[
i];
9501
children
[
i].Scale(factor);
9574
Control child = children
[
i];
9794
children
[
i].Scale(dx, dy);
10893
Control child = Controls
[
i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
415
if (children
[
i] is RadioButton radioButton
438
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)
652
Control ctl = children
[
i];
726
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)
994
if (controlsToLookIn
[
i] is null)
999
if (controlsToLookIn
[
i] is MenuStrip menuStrip)
1008
if (controlsToLookIn
[
i] is null)
1013
if ((controlsToLookIn
[
i].Controls is not null) && controlsToLookIn
[
i].Controls.Count > 0)
1016
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)
3821
Control ctl = Controls
[
index];
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1041
ResumeAllLayout(controlsCollection
[
i], performLayout);
1061
SuspendAllLayout(controlsCollection
[
i]);
1974
children
[
i].ValidationCancelled = false;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
701
UpdateAnchorsIteratively(controls
[
i]);
System\Windows\Forms\MDI\MDIClient.cs (1)
247
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)
349
Control current = Controls
[
i];
408
Control current = Controls
[
i];
811
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)
2142
listOfTrayControls.Add(tray.Controls
[
numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\ComponentTray.cs (2)
229
if (children
[
i] is TrayControl tc)
1380
Control child = Controls
[
i];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
301
if (parent.Controls
[
i] == control)
408
Control child = control.Controls
[
i];
System\Windows\Forms\Design\ControlCommandSet.cs (14)
1519
if (found is null || found.TabIndex > ctlControls
[
c].TabIndex)
1521
found = ctlControls
[
c];
1555
if (parentControls
[
c] != ctl)
1560
if (parentControls
[
c].TabIndex >= targetIndex)
1565
if (found is null || found.TabIndex > parentControls
[
c].TabIndex)
1571
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
1573
found = parentControls
[
c];
1623
if (parentControls
[
c] != ctl)
1628
if (parentControls
[
c].TabIndex <= targetIndex)
1633
if (found is null || found.TabIndex < parentControls
[
c].TabIndex)
1639
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
1641
found = parentControls
[
c];
1688
if (found is null || found.TabIndex < ctlControls
[
c].TabIndex)
1690
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)
1183
TypeDescriptor.AddAttributes(Control.Controls
[
i], InheritanceAttribute.InheritedReadOnly);
2217
if (_realCollection
[
i] is not null &&
2218
_realCollection
[
i].Site is not null &&
2219
TypeDescriptor.GetAttributes(_realCollection
[
i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (2)
363
if (GetTabbable(ctl.Controls
[
n]))
423
ctlTab = control.Controls
[
i];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
342
if (parentControls
[
c] != ctl)
346
if (parentControls
[
c].TabIndex >= targetIndex)
349
if (found is null || found.TabIndex > parentControls
[
c].TabIndex)
354
if ((parentControls
[
c].Site is not null && parentControls
[
c].TabIndex != targetIndex) || hitCtl)
356
found = parentControls
[
c];
397
if (parentControls
[
c] != ctl)
401
if (parentControls
[
c].TabIndex <= targetIndex)
404
if (found is null || found.TabIndex < parentControls
[
c].TabIndex)
409
if (parentControls
[
c].TabIndex != targetIndex || hitCtl)
411
found = parentControls
[
c];
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1822
Assert.Equal(collection
[
expectedIndex], collection[key]);
1825
Assert.Equal(collection
[
expectedIndex], collection[key]);
1892
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
1907
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
118
Assert.Equal(tabControl.Controls
[
i], tabControl.TabPages[i]);