3 overrides of SetChildIndex
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
334
public override void
SetChildIndex
(Control child, int newIndex) => throw new NotSupportedException();
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)
2203
public override void
SetChildIndex
(Control child, int newIndex) => _realCollection.SetChildIndex(child, newIndex);
31 references to SetChildIndex
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (3)
4378
_parent.Controls.
SetChildIndex
(this, 0);
10028
_parent.Controls.
SetChildIndex
(this, -1);
10941
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);
2433
parent.Controls.
SetChildIndex
(c, childIndex);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2203
public override void SetChildIndex(Control child, int newIndex) => _realCollection.
SetChildIndex
(child, newIndex);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1595
parent.Controls.
SetChildIndex
(ToolStrip, index);
1625
parent.Controls.
SetChildIndex
(ToolStrip, index - 1);
System.Windows.Forms.Tests (16)
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
3064
collection.
SetChildIndex
(child1, 1);
3074
collection.
SetChildIndex
(child1, 1);
3084
collection.
SetChildIndex
(child1, 0);
3132
collection.
SetChildIndex
(child1, index);
3142
collection.
SetChildIndex
(child1, index);
3192
collection.
SetChildIndex
(child1, 1);
3205
collection.
SetChildIndex
(child1, 1);
3218
collection.
SetChildIndex
(child1, 0);
3277
collection.
SetChildIndex
(child1, 1);
3293
collection.
SetChildIndex
(child1, 1);
3309
collection.
SetChildIndex
(child1, 0);
3366
collection.
SetChildIndex
(child1, 1);
3379
collection.
SetChildIndex
(child1, 1);
3392
collection.
SetChildIndex
(child1, 0);
3415
Assert.Throws<ArgumentNullException>("child", () => collection.
SetChildIndex
(null, 0));
3427
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
SetChildIndex
(child, -2));