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