11 references to SetCellPosition
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
598Table.SetCellPosition(control, new TableLayoutPanelCellPosition(newControlPosition.X, newControlPosition.Y)); 1258Table.SetCellPosition(e.Control, new TableLayoutPanelCellPosition(-1, -1));
System.Windows.Forms.Tests (9)
System\Windows\Forms\TableLayoutPanelTests.cs (9)
663control.SetCellPosition(child, new TableLayoutPanelCellPosition { Column = -2 }); 672control.SetCellPosition(child, new TableLayoutPanelCellPosition { Row = -2 }); 1562control.SetCellPosition(child, value); 1570control.SetCellPosition(child, value); 1614control.SetCellPosition(child, value); 1624control.SetCellPosition(child, value); 1644control.SetCellPosition(child, new TableLayoutPanelCellPosition(1, 1)); 1647control.SetCellPosition(child, new TableLayoutPanelCellPosition(2, 2)); 1655Assert.Throws<ArgumentNullException>("control", () => control.SetCellPosition(null, default));