14 references to GetChildIndex
System.Windows.Forms (3)
System\Windows\Forms\Control.ControlCollection.cs (1)
423
int currentIndex =
GetChildIndex
(child);
System\Windows\Forms\Control.cs (2)
10848
int currentIndex = Controls.
GetChildIndex
(control);
10919
for (int i = Controls.
GetChildIndex
(control); --i >= 0;)
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\CommandSet.cs (2)
3518
return c1.Parent == c2.Parent && c1.Parent is not null ? c1.Parent.Controls.
GetChildIndex
(c1) - c1.Parent.Controls.
GetChildIndex
(c2) : 1;
System\Windows\Forms\Design\ControlCommandSet.cs (2)
1739
else if (parent.Controls.
GetChildIndex
(cX) > parent.Controls.
GetChildIndex
(cY))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
656
int childIndex = parent.Controls.
GetChildIndex
(children[i]);
2430
int childIndex = parent.Controls.
GetChildIndex
(c);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (1)
155
_control.Controls.
GetChildIndex
(control).Should().Be(0);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
1530
Assert.Equal(0, collection.
GetChildIndex
(child1));
1531
Assert.Equal(1, collection.
GetChildIndex
(child2));
1581
Assert.Throws<ArgumentException>(() => collection.
GetChildIndex
(child));
1582
Assert.Throws<ArgumentException>(() => collection.
GetChildIndex
(child));