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)
3451children[i].UseWaitCursor = value; 4830Control child = children[i]; 4865children[i].DisposeAxControls(); 5528if (found is null || found._tabIndex > children[c]._tabIndex) 5530found = children[c]; 5540if (found is null || found._tabIndex < children[c]._tabIndex) 5542found = children[c]; 5646if (parentChildren[c]._tabIndex >= targetIndex) 5650if (found is null || found._tabIndex > parentChildren[c]._tabIndex) 5655if (parentChildren[c]._tabIndex != targetIndex || hitCtl) 5657found = parentChildren[c]; 5705Control sibling = siblings[c]; 6694children[i].OnParentBackColorChanged(e); 6718children[i].OnParentBackgroundImageChanged(e); 6761children[i].OnParentBindingContextChanged(e); 6805children[i].OnParentCursorChanged(e); 6827children[i].OnParentDataContextChanged(e); 6876children[i].OnParentEnabledChanged(e); 6920children[i].OnParentFontChanged(e); 6947children[i].OnParentForeColorChanged(e); 6975children[i].OnParentRightToLeftChanged(e); 7157children[i].OnParentBecameInvisible(); 7257Control child = children[i]; 7277children[i].OnTopMostActiveXParentChanged(e); 7709children[i].OnParentInvalidated(e); 8103children[i].OnSystemColorsChanged(EventArgs.Empty); 8843Control child = Controls[i]; 9262Control childControl = children[i]; 9543Control child = children[i]; 9632children[i].Scale(factor); 9705Control child = children[i]; 9917children[i].Scale(dx, dy); 11027Control child = Controls[i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
432if (children[i] is RadioButton radioButton 455if (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)
651Control ctl = children[i]; 725Control 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)
978if (controlsToLookIn[i] is null) 983if (controlsToLookIn[i] is MenuStrip menuStrip) 992if (controlsToLookIn[i] is null) 997if ((controlsToLookIn[i].Controls is not null) && controlsToLookIn[i].Controls.Count > 0) 1000MenuStrip? 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)
3872Control ctl = Controls[index];
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1034ResumeAllLayout(controlsCollection[i], performLayout); 1054SuspendAllLayout(controlsCollection[i]); 1964children[i].ValidationCancelled = false;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
700UpdateAnchorsIteratively(controls[i]);
System\Windows\Forms\MDI\MDIClient.cs (1)
243if (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)
341Control current = Controls[i]; 400Control current = Controls[i]; 803Control 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)
2138listOfTrayControls.Add(tray.Controls[numberOfOriginalTrayControls + i]);
System\Windows\Forms\Design\ComponentTray.cs (2)
223if (children[i] is TrayControl tc) 1365Control 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)
1513if (found is null || found.TabIndex > ctlControls[c].TabIndex) 1515found = ctlControls[c]; 1549if (parentControls[c] != ctl) 1554if (parentControls[c].TabIndex >= targetIndex) 1559if (found is null || found.TabIndex > parentControls[c].TabIndex) 1565if (parentControls[c].TabIndex != targetIndex || hitCtl) 1567found = parentControls[c]; 1617if (parentControls[c] != ctl) 1622if (parentControls[c].TabIndex <= targetIndex) 1627if (found is null || found.TabIndex < parentControls[c].TabIndex) 1633if (parentControls[c].TabIndex != targetIndex || hitCtl) 1635found = parentControls[c]; 1682if (found is null || found.TabIndex < ctlControls[c].TabIndex) 1684found = 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)
1177TypeDescriptor.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly); 2195if (_realCollection[i] is not null && 2196_realCollection[i].Site is not null && 2197TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (2)
360if (GetTabbable(ctl.Controls[n])) 420ctlTab = control.Controls[i];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
339if (parentControls[c] != ctl) 343if (parentControls[c].TabIndex >= targetIndex) 346if (found is null || found.TabIndex > parentControls[c].TabIndex) 351if ((parentControls[c].Site is not null && parentControls[c].TabIndex != targetIndex) || hitCtl) 353found = parentControls[c]; 394if (parentControls[c] != ctl) 398if (parentControls[c].TabIndex <= targetIndex) 401if (found is null || found.TabIndex < parentControls[c].TabIndex) 406if (parentControls[c].TabIndex != targetIndex || hitCtl) 408found = parentControls[c];
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1824Assert.Equal(collection[expectedIndex], collection[key]); 1827Assert.Equal(collection[expectedIndex], collection[key]); 1894Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]); 1909Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]);
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
117Assert.Equal(tabControl.Controls[i], tabControl.TabPages[i]);