21 references to SetCellPosition
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
232
_tableLayoutSettings.
SetCellPosition
(control, position);
System.Windows.Forms.Tests (20)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (20)
214
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Column = -2 });
224
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Column = -2 });
234
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Row = -2 });
244
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Row = -2 });
470
settings.
SetCellPosition
(child, value);
478
settings.
SetCellPosition
(child, value);
523
settings.
SetCellPosition
(child, value);
533
settings.
SetCellPosition
(child, value);
558
settings.
SetCellPosition
(child, value);
564
settings.
SetCellPosition
(child, value);
596
settings.
SetCellPosition
(child, value);
604
settings.
SetCellPosition
(child, value);
624
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(1, 1));
627
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(2, 2));
638
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(1, 1));
641
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(2, 2));
650
Assert.Throws<ArgumentNullException>("control", () => settings.
SetCellPosition
(null, default));
658
Assert.Throws<ArgumentNullException>("control", () => settings.
SetCellPosition
(null, default));
666
Assert.Throws<NotSupportedException>(() => settings.
SetCellPosition
("control", default));
674
settings.
SetCellPosition
("control", default);