2 overrides of SetChildIndex
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
65public override void SetChildIndex(Control child, int newIndex)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2210public override void SetChildIndex(Control child, int newIndex) => _realCollection.SetChildIndex(child, newIndex);
33 references to SetChildIndex
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (3)
4309_parent.Controls.SetChildIndex(this, 0); 9926_parent.Controls.SetChildIndex(this, -1); 10839Controls.SetChildIndex(control, newIndex);
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
235_owner.Controls.SetChildIndex(tabPage, index);
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
284dragTarget.Controls.SetChildIndex(currentControl, newIndex);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
66=> _realCollection.SetChildIndex(child, newIndex);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
662children.SetChildIndex(_primaryDragControl, _insertionIndex); 678children.SetChildIndex(_dragControls[i], _insertionIndex); 733Control.Controls.SetChildIndex(e.Control, _insertionIndex);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
429Control.Controls.SetChildIndex(newChild, 0); 659parent.Controls.SetChildIndex(children[i], childIndex); 2432parent.Controls.SetChildIndex(c, childIndex);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2210public override void SetChildIndex(Control child, int newIndex) => _realCollection.SetChildIndex(child, newIndex);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1556parent.Controls.SetChildIndex(ToolStrip, index); 1586parent.Controls.SetChildIndex(ToolStrip, index - 1);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
119_collection.SetChildIndex(control, 0); 154_collection.SetChildIndex(control, 0);
System.Windows.Forms.Tests (16)
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
3062collection.SetChildIndex(child1, 1); 3072collection.SetChildIndex(child1, 1); 3082collection.SetChildIndex(child1, 0); 3130collection.SetChildIndex(child1, index); 3140collection.SetChildIndex(child1, index); 3190collection.SetChildIndex(child1, 1); 3203collection.SetChildIndex(child1, 1); 3216collection.SetChildIndex(child1, 0); 3275collection.SetChildIndex(child1, 1); 3291collection.SetChildIndex(child1, 1); 3307collection.SetChildIndex(child1, 0); 3364collection.SetChildIndex(child1, 1); 3377collection.SetChildIndex(child1, 1); 3390collection.SetChildIndex(child1, 0); 3413Assert.Throws<ArgumentNullException>("child", () => collection.SetChildIndex(null, 0)); 3425Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.SetChildIndex(child, -2));