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)
65public override void SetChildIndex(Control child, int newIndex)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2203public override void SetChildIndex(Control child, int newIndex) => _realCollection.SetChildIndex(child, newIndex);
34 references to SetChildIndex
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (3)
4308_parent.Controls.SetChildIndex(this, 0); 9952_parent.Controls.SetChildIndex(this, -1); 10865Controls.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); 2433parent.Controls.SetChildIndex(c, childIndex);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2203public override void SetChildIndex(Control child, int newIndex) => _realCollection.SetChildIndex(child, newIndex);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1601parent.Controls.SetChildIndex(ToolStrip, index); 1631parent.Controls.SetChildIndex(ToolStrip, index - 1);
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
117_collection.SetChildIndex(control, 0); 152_collection.SetChildIndex(control, 0);
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
311_collection.SetChildIndex(button1, 1);
System.Windows.Forms.Tests (16)
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
3064collection.SetChildIndex(child1, 1); 3074collection.SetChildIndex(child1, 1); 3084collection.SetChildIndex(child1, 0); 3132collection.SetChildIndex(child1, index); 3142collection.SetChildIndex(child1, index); 3192collection.SetChildIndex(child1, 1); 3205collection.SetChildIndex(child1, 1); 3218collection.SetChildIndex(child1, 0); 3277collection.SetChildIndex(child1, 1); 3293collection.SetChildIndex(child1, 1); 3309collection.SetChildIndex(child1, 0); 3366collection.SetChildIndex(child1, 1); 3379collection.SetChildIndex(child1, 1); 3392collection.SetChildIndex(child1, 0); 3415Assert.Throws<ArgumentNullException>("child", () => collection.SetChildIndex(null, 0)); 3427Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.SetChildIndex(child, -2));