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)
162
Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.
GetCellPosition
(child));
171
Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.
GetCellPosition
(child));
179
Assert.Throws<ArgumentNullException>("control", () => settings.
GetCellPosition
(null));
187
Assert.Throws<ArgumentNullException>("control", () => settings.
GetCellPosition
(null));
195
Assert.Throws<NotSupportedException>(() => settings.
GetCellPosition
("control"));
203
Assert.Equal(new TableLayoutPanelCellPosition(-1, -1), settings.
GetCellPosition
("control"));
213
Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.
GetCellPosition
(child));
223
Assert.Throws<ArgumentOutOfRangeException>("column", () => settings.
GetCellPosition
(child));
233
Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.
GetCellPosition
(child));
243
Assert.Throws<ArgumentOutOfRangeException>("row", () => settings.
GetCellPosition
(child));
469
Assert.Equal(value, settings.
GetCellPosition
(child));
477
Assert.Equal(value, settings.
GetCellPosition
(child));
522
Assert.Equal(value, settings.
GetCellPosition
(child));
532
Assert.Equal(value, settings.
GetCellPosition
(child));
557
Assert.Equal(value, settings.
GetCellPosition
(child));
563
Assert.Equal(value, settings.
GetCellPosition
(child));
595
Assert.Equal(value, settings.
GetCellPosition
(child));
603
Assert.Equal(value, settings.
GetCellPosition
(child));
623
Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.
GetCellPosition
(child));
626
Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.
GetCellPosition
(child));
637
Assert.Equal(new TableLayoutPanelCellPosition(1, 1), settings.
GetCellPosition
(child));
640
Assert.Equal(new TableLayoutPanelCellPosition(2, 2), settings.
GetCellPosition
(child));
673
Assert.Equal(new TableLayoutPanelCellPosition(), settings.
GetCellPosition
("control"));