2 overrides of SetChildIndex
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
65
public override void
SetChildIndex
(Control child, int newIndex)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2210
public 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);
9921
_parent.Controls.
SetChildIndex
(this, -1);
10834
Controls.
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)
284
dragTarget.Controls.
SetChildIndex
(currentControl, newIndex);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
66
=> _realCollection.
SetChildIndex
(child, newIndex);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
662
children.
SetChildIndex
(_primaryDragControl, _insertionIndex);
678
children.
SetChildIndex
(_dragControls[i], _insertionIndex);
733
Control.Controls.
SetChildIndex
(e.Control, _insertionIndex);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
429
Control.Controls.
SetChildIndex
(newChild, 0);
659
parent.Controls.
SetChildIndex
(children[i], childIndex);
2432
parent.Controls.
SetChildIndex
(c, childIndex);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2210
public override void SetChildIndex(Control child, int newIndex) => _realCollection.
SetChildIndex
(child, newIndex);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1550
parent.Controls.
SetChildIndex
(ToolStrip, index);
1580
parent.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)
3062
collection.
SetChildIndex
(child1, 1);
3072
collection.
SetChildIndex
(child1, 1);
3082
collection.
SetChildIndex
(child1, 0);
3130
collection.
SetChildIndex
(child1, index);
3140
collection.
SetChildIndex
(child1, index);
3190
collection.
SetChildIndex
(child1, 1);
3203
collection.
SetChildIndex
(child1, 1);
3216
collection.
SetChildIndex
(child1, 0);
3275
collection.
SetChildIndex
(child1, 1);
3291
collection.
SetChildIndex
(child1, 1);
3307
collection.
SetChildIndex
(child1, 0);
3364
collection.
SetChildIndex
(child1, 1);
3377
collection.
SetChildIndex
(child1, 1);
3390
collection.
SetChildIndex
(child1, 0);
3413
Assert.Throws<ArgumentNullException>("child", () => collection.
SetChildIndex
(null, 0));
3425
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
SetChildIndex
(child, -2));