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)
214settings.SetCellPosition(child, new TableLayoutPanelCellPosition { Column = -2 }); 224settings.SetCellPosition(child, new TableLayoutPanelCellPosition { Column = -2 }); 234settings.SetCellPosition(child, new TableLayoutPanelCellPosition { Row = -2 }); 244settings.SetCellPosition(child, new TableLayoutPanelCellPosition { Row = -2 }); 470settings.SetCellPosition(child, value); 478settings.SetCellPosition(child, value); 523settings.SetCellPosition(child, value); 533settings.SetCellPosition(child, value); 558settings.SetCellPosition(child, value); 564settings.SetCellPosition(child, value); 596settings.SetCellPosition(child, value); 604settings.SetCellPosition(child, value); 624settings.SetCellPosition(child, new TableLayoutPanelCellPosition(1, 1)); 627settings.SetCellPosition(child, new TableLayoutPanelCellPosition(2, 2)); 638settings.SetCellPosition(child, new TableLayoutPanelCellPosition(1, 1)); 641settings.SetCellPosition(child, new TableLayoutPanelCellPosition(2, 2)); 650Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 658Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default)); 666Assert.Throws<NotSupportedException>(() => settings.SetCellPosition("control", default)); 674settings.SetCellPosition("control", default);