128 references to
System.Windows.Forms (78)
System\Windows\Forms\Control.ControlCollection.ControlCollectionEnumerator.cs (1)
67return _controls[_current];
System\Windows\Forms\Control.ControlCollection.cs (11)
81int t = this[c].TabIndex; 193if (controlsToLookIn[i] is null) 198if (WindowsFormsUtils.SafeCompareStrings(controlsToLookIn[i].Name, key, ignoreCase: true)) 200foundControls.Add(controlsToLookIn[i]); 209if (controlsToLookIn[i] is null) 214if (controlsToLookIn[i].Controls.Count > 0) 217FindInternal(key, true, controlsToLookIn[i].Controls, foundControls); 248if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 257if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) 322Remove(this[index]); 371return this[index];
System\Windows\Forms\Control.cs (33)
3363children[i].UseWaitCursor = value; 4742Control child = children[i]; 4777children[i].DisposeAxControls(); 5400if (found is null || found._tabIndex > children[c]._tabIndex) 5402found = children[c]; 5412if (found is null || found._tabIndex < children[c]._tabIndex) 5414found = children[c]; 5518if (parentChildren[c]._tabIndex >= targetIndex) 5522if (found is null || found._tabIndex > parentChildren[c]._tabIndex) 5527if (parentChildren[c]._tabIndex != targetIndex || hitCtl) 5529found = parentChildren[c]; 5577Control sibling = siblings[c]; 6564children[i].OnParentBackColorChanged(e); 6588children[i].OnParentBackgroundImageChanged(e); 6631children[i].OnParentBindingContextChanged(e); 6675children[i].OnParentCursorChanged(e); 6697children[i].OnParentDataContextChanged(e); 6746children[i].OnParentEnabledChanged(e); 6790children[i].OnParentFontChanged(e); 6817children[i].OnParentForeColorChanged(e); 6845children[i].OnParentRightToLeftChanged(e); 7030children[i].OnParentBecameInvisible(); 7130Control child = children[i]; 7150children[i].OnTopMostActiveXParentChanged(e); 7584children[i].OnParentInvalidated(e); 7978children[i].OnSystemColorsChanged(EventArgs.Empty); 8727Control child = Controls[i]; 9142Control childControl = children[i]; 9407Control child = children[i]; 9496children[i].Scale(factor); 9569Control child = children[i]; 9789children[i].Scale(dx, dy); 10888Control child = Controls[i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
415if (children[i] is RadioButton radioButton 438if (children[i] is RadioButton button)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (4)
52if (this[i] == _owner._horizScrollBar || this[i] == _owner._vertScrollBar || this[i] == _owner._editingPanel) 58Remove(this[i]);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
652Control ctl = children[i]; 726Control target = children[i];
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
38return owningTabPage.Controls[index].AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (6)
994if (controlsToLookIn[i] is null) 999if (controlsToLookIn[i] is MenuStrip menuStrip) 1008if (controlsToLookIn[i] is null) 1013if ((controlsToLookIn[i].Controls is not null) && controlsToLookIn[i].Controls.Count > 0) 1016MenuStrip? menuStrip = GetFirstMenuStripRecursive(controlsToLookIn[i].Controls);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (8)
241if (controlsToLookIn[i] is null) 246if (controlsToLookIn[i] is T control) 257if (controlsToLookIn[i] is null or Form) 262if ((controlsToLookIn[i].Controls is not null) && controlsToLookIn[i].Controls.Count > 0) 265FindControls(searchAllChildren, controlsToLookIn[i].Controls, foundControls); 291ResumeAllLayout(controlsCollection[i], performLayout); 304SuspendAllLayout(controlsCollection[i]);
System\Windows\Forms\Form.cs (1)
3821Control ctl = Controls[index];
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1041ResumeAllLayout(controlsCollection[i], performLayout); 1061SuspendAllLayout(controlsCollection[i]); 1974children[i].ValidationCancelled = false;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
701UpdateAnchorsIteratively(controls[i]);
System\Windows\Forms\MDI\MDIClient.cs (1)
247if (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)
349Control current = Controls[i]; 408Control current = Controls[i]; 811Control ctl = Controls[i];
System.Windows.Forms.Design (45)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
443if (Controls[i] is RadioButton button && Controls[i].TabIndex == nextTabIndex)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
535listOfTrayControls.Add(tray.Controls[numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\CommandSet.cs (1)
2144listOfTrayControls.Add(tray.Controls[numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\ComponentTray.cs (2)
229if (children[i] is TrayControl tc) 1380Control child = Controls[i];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
301if (parent.Controls[i] == control) 408Control child = control.Controls[i];
System\Windows\Forms\Design\ControlCommandSet.cs (14)
1519if (found is null || found.TabIndex > ctlControls[c].TabIndex) 1521found = ctlControls[c]; 1555if (parentControls[c] != ctl) 1560if (parentControls[c].TabIndex >= targetIndex) 1565if (found is null || found.TabIndex > parentControls[c].TabIndex) 1571if (parentControls[c].TabIndex != targetIndex || hitCtl) 1573found = parentControls[c]; 1623if (parentControls[c] != ctl) 1628if (parentControls[c].TabIndex <= targetIndex) 1633if (found is null || found.TabIndex < parentControls[c].TabIndex) 1639if (parentControls[c].TabIndex != targetIndex || hitCtl) 1641found = parentControls[c]; 1688if (found is null || found.TabIndex < ctlControls[c].TabIndex) 1690found = ctlControls[c];
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (3)
72if (_realCollection[i] is not null && 73_realCollection[i].Site is not null && 74TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
199var currentControl = children[i]; 601control = children[_insertionIndex];
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
873Control child = control.Controls[i];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
1183TypeDescriptor.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly); 2217if (_realCollection[i] is not null && 2218_realCollection[i].Site is not null && 2219TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (2)
363if (GetTabbable(ctl.Controls[n])) 423ctlTab = control.Controls[i];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
342if (parentControls[c] != ctl) 346if (parentControls[c].TabIndex >= targetIndex) 349if (found is null || found.TabIndex > parentControls[c].TabIndex) 354if ((parentControls[c].Site is not null && parentControls[c].TabIndex != targetIndex) || hitCtl) 356found = parentControls[c]; 397if (parentControls[c] != ctl) 401if (parentControls[c].TabIndex <= targetIndex) 404if (found is null || found.TabIndex < parentControls[c].TabIndex) 409if (parentControls[c].TabIndex != targetIndex || hitCtl) 411found = parentControls[c];
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1822Assert.Equal(collection[expectedIndex], collection[key]); 1825Assert.Equal(collection[expectedIndex], collection[key]); 1892Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1907Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]);
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
118Assert.Equal(tabControl.Controls[i], tabControl.TabPages[i]);