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