21 references to GetControlFromPosition
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
497
Control existingControl = ((TableLayoutPanel)Control).
GetControlFromPosition
(newControlPosition.X, newControlPosition.Y);
758
if (Table.
GetControlFromPosition
(column, row) is not null)
1227
if (Table.
GetControlFromPosition
(column, row) is not null)
1277
Control existingControl = ((TableLayoutPanel)Control).
GetControlFromPosition
(dropPoint.X, dropPoint.Y);
System.Windows.Forms.Tests (17)
System\Windows\Forms\TableLayoutPanelTests.cs (17)
743
Assert.Equal(child, control.
GetControlFromPosition
(column, row));
746
Assert.Equal(child, control.
GetControlFromPosition
(column, row));
750
Assert.Null(control.
GetControlFromPosition
(column, row));
754
Assert.Same(child, control.
GetControlFromPosition
(column, row));
758
Assert.Null(control.
GetControlFromPosition
(column, row));
762
Assert.Same(child, control.
GetControlFromPosition
(column, row));
783
Assert.Null(control.
GetControlFromPosition
(column, row));
786
Assert.Null(control.
GetControlFromPosition
(column, row));
806
Assert.Null(control.
GetControlFromPosition
(column, row));
809
Assert.Null(control.
GetControlFromPosition
(column, row));
828
Assert.Null(control.
GetControlFromPosition
(column, row));
831
Assert.Null(control.
GetControlFromPosition
(column, row));
852
Assert.Null(control.
GetControlFromPosition
(column, row));
855
Assert.Null(control.
GetControlFromPosition
(column, row));
862
Assert.Null(control.
GetControlFromPosition
(0, 0));
871
Assert.Throws<ArgumentOutOfRangeException>("column", () => control.
GetControlFromPosition
(column, 0));
880
Assert.Throws<ArgumentOutOfRangeException>("row", () => control.
GetControlFromPosition
(0, row));