31 references to GetRow
System.Windows.Forms (4)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
212
public int GetRow(Control control) => _tableLayoutSettings.
GetRow
(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (3)
355
return new TableLayoutPanelCellPosition(GetColumn(control),
GetRow
(control));
448
Debug.Assert(!rowSpecified ||
GetRow
(element) == row, "row position should equal to what we set");
528
controlInfo.Row =
GetRow
(c);
System.Windows.Forms.Tests (27)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (20)
355
Assert.Equal(-1, settings.
GetRow
(child));
364
Assert.Equal(-1, settings.
GetRow
(child));
372
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRow
(null));
380
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRow
(null));
388
Assert.Throws<NotSupportedException>(() => settings.
GetRow
("control"));
396
Assert.Equal(-1, settings.
GetRow
("control"));
1171
Assert.Equal(value, settings.
GetRow
(child));
1179
Assert.Equal(value, settings.
GetRow
(child));
1219
Assert.Equal(value, settings.
GetRow
(child));
1229
Assert.Equal(value, settings.
GetRow
(child));
1258
Assert.Equal(value, settings.
GetRow
(child));
1264
Assert.Equal(value, settings.
GetRow
(child));
1293
Assert.Equal(value, settings.
GetRow
(child));
1301
Assert.Equal(value, settings.
GetRow
(child));
1321
Assert.Equal(1, settings.
GetRow
(child));
1324
Assert.Equal(2, settings.
GetRow
(child));
1335
Assert.Equal(1, settings.
GetRow
(child));
1338
Assert.Equal(2, settings.
GetRow
(child));
1375
Assert.Equal(1, settings.
GetRow
("control"));
1805
Assert.Equal(-1, result.
GetRow
(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
67
Assert.Equal(-1, settings.
GetRow
("simple"));
72
Assert.Equal(1, settings.
GetRow
("name"));
77
Assert.Equal(-1, settings.
GetRow
("invalidRow"));
82
Assert.Equal(-1, settings.
GetRow
("invalidRowSpan"));
87
Assert.Equal(-1, settings.
GetRow
("invalidColumn"));
92
Assert.Equal(-1, settings.
GetRow
("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
525
Assert.Equal(4, control.LayoutSettings.
GetRow
(controlWithName));