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