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)
212
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Column = -2 });
222
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Column = -2 });
232
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Row = -2 });
242
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition { Row = -2 });
468
settings.
SetCellPosition
(child, value);
476
settings.
SetCellPosition
(child, value);
521
settings.
SetCellPosition
(child, value);
531
settings.
SetCellPosition
(child, value);
556
settings.
SetCellPosition
(child, value);
562
settings.
SetCellPosition
(child, value);
594
settings.
SetCellPosition
(child, value);
602
settings.
SetCellPosition
(child, value);
622
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(1, 1));
625
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(2, 2));
636
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(1, 1));
639
settings.
SetCellPosition
(child, new TableLayoutPanelCellPosition(2, 2));
648
Assert.Throws<ArgumentNullException>("control", () => settings.
SetCellPosition
(null, new TableLayoutPanelCellPosition()));
656
Assert.Throws<ArgumentNullException>("control", () => settings.
SetCellPosition
(null, new TableLayoutPanelCellPosition()));
664
Assert.Throws<NotSupportedException>(() => settings.
SetCellPosition
("control", new TableLayoutPanelCellPosition()));
672
settings.
SetCellPosition
("control", new TableLayoutPanelCellPosition());