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)
3364children[i].UseWaitCursor = value; 4743Control child = children[i]; 4778children[i].DisposeAxControls(); 5441if (found is null || found._tabIndex > children[c]._tabIndex) 5443found = children[c]; 5453if (found is null || found._tabIndex < children[c]._tabIndex) 5455found = children[c]; 5559if (parentChildren[c]._tabIndex >= targetIndex) 5563if (found is null || found._tabIndex > parentChildren[c]._tabIndex) 5568if (parentChildren[c]._tabIndex != targetIndex || hitCtl) 5570found = parentChildren[c]; 5618Control sibling = siblings[c]; 6605children[i].OnParentBackColorChanged(e); 6629children[i].OnParentBackgroundImageChanged(e); 6672children[i].OnParentBindingContextChanged(e); 6716children[i].OnParentCursorChanged(e); 6738children[i].OnParentDataContextChanged(e); 6787children[i].OnParentEnabledChanged(e); 6831children[i].OnParentFontChanged(e); 6858children[i].OnParentForeColorChanged(e); 6886children[i].OnParentRightToLeftChanged(e); 7071children[i].OnParentBecameInvisible(); 7171Control child = children[i]; 7191children[i].OnTopMostActiveXParentChanged(e); 7625children[i].OnParentInvalidated(e); 8019children[i].OnSystemColorsChanged(EventArgs.Empty); 8768Control child = Controls[i]; 9183Control childControl = children[i]; 9448Control child = children[i]; 9537children[i].Scale(factor); 9610Control child = children[i]; 9822children[i].Scale(dx, dy); 10921Control 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) 421Control 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); 2210if (_realCollection[i] is not null && 2211_realCollection[i].Site is not null && 2212TypeDescriptor.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]);