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)
353
Assert.Equal(-1, settings.
GetRow
(child));
362
Assert.Equal(-1, settings.
GetRow
(child));
370
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRow
(null));
378
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRow
(null));
386
Assert.Throws<NotSupportedException>(() => settings.
GetRow
("control"));
394
Assert.Equal(-1, settings.
GetRow
("control"));
1169
Assert.Equal(value, settings.
GetRow
(child));
1177
Assert.Equal(value, settings.
GetRow
(child));
1217
Assert.Equal(value, settings.
GetRow
(child));
1227
Assert.Equal(value, settings.
GetRow
(child));
1256
Assert.Equal(value, settings.
GetRow
(child));
1262
Assert.Equal(value, settings.
GetRow
(child));
1291
Assert.Equal(value, settings.
GetRow
(child));
1299
Assert.Equal(value, settings.
GetRow
(child));
1319
Assert.Equal(1, settings.
GetRow
(child));
1322
Assert.Equal(2, settings.
GetRow
(child));
1333
Assert.Equal(1, settings.
GetRow
(child));
1336
Assert.Equal(2, settings.
GetRow
(child));
1373
Assert.Equal(1, settings.
GetRow
("control"));
1803
Assert.Equal(-1, result.
GetRow
(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
65
Assert.Equal(-1, settings.
GetRow
("simple"));
70
Assert.Equal(1, settings.
GetRow
("name"));
75
Assert.Equal(-1, settings.
GetRow
("invalidRow"));
80
Assert.Equal(-1, settings.
GetRow
("invalidRowSpan"));
85
Assert.Equal(-1, settings.
GetRow
("invalidColumn"));
90
Assert.Equal(-1, settings.
GetRow
("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
523
Assert.Equal(4, control.LayoutSettings.
GetRow
(controlWithName));