24 references to GetCellPosition
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
228_tableLayoutSettings.GetCellPosition(control);
System.Windows.Forms.Tests (23)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (23)
162Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition(child)); 171Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition(child)); 179Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 187Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 195Assert.Throws<NotSupportedException>(() => settings.GetCellPosition("control")); 203Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition("control")); 213Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 223Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 233Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 243Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 469Assert.Equal(value, settings.GetCellPosition(child)); 477Assert.Equal(value, settings.GetCellPosition(child)); 522Assert.Equal(value, settings.GetCellPosition(child)); 532Assert.Equal(value, settings.GetCellPosition(child)); 557Assert.Equal(value, settings.GetCellPosition(child)); 563Assert.Equal(value, settings.GetCellPosition(child)); 595Assert.Equal(value, settings.GetCellPosition(child)); 603Assert.Equal(value, settings.GetCellPosition(child)); 623Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.GetCellPosition(child)); 626Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.GetCellPosition(child)); 637Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.GetCellPosition(child)); 640Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.GetCellPosition(child)); 673Assert.Equal(new TableLayoutPanelCellPosition(), settings.GetCellPosition("control"));