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