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)
164Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition(child)); 173Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition(child)); 181Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 189Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null)); 197Assert.Throws<NotSupportedException>(() => settings.GetCellPosition("control")); 205Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.GetCellPosition("control")); 215Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 225Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.GetCellPosition(child)); 235Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 245Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.GetCellPosition(child)); 471Assert.Equal(value, settings.GetCellPosition(child)); 479Assert.Equal(value, settings.GetCellPosition(child)); 524Assert.Equal(value, settings.GetCellPosition(child)); 534Assert.Equal(value, settings.GetCellPosition(child)); 559Assert.Equal(value, settings.GetCellPosition(child)); 565Assert.Equal(value, settings.GetCellPosition(child)); 597Assert.Equal(value, settings.GetCellPosition(child)); 605Assert.Equal(value, settings.GetCellPosition(child)); 625Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.GetCellPosition(child)); 628Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.GetCellPosition(child)); 639Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.GetCellPosition(child)); 642Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.GetCellPosition(child)); 675Assert.Equal(default, settings.GetCellPosition("control"));