31 references to GetRow
System.Windows.Forms (4)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
212public int GetRow(Control control) => _tableLayoutSettings.GetRow(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (3)
355return new TableLayoutPanelCellPosition(GetColumn(control), GetRow(control)); 448Debug.Assert(!rowSpecified || GetRow(element) == row, "row position should equal to what we set"); 528controlInfo.Row = GetRow(c);
System.Windows.Forms.Tests (27)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (20)
353Assert.Equal(-1, settings.GetRow(child)); 362Assert.Equal(-1, settings.GetRow(child)); 370Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 378Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null)); 386Assert.Throws<NotSupportedException>(() => settings.GetRow("control")); 394Assert.Equal(-1, settings.GetRow("control")); 1169Assert.Equal(value, settings.GetRow(child)); 1177Assert.Equal(value, settings.GetRow(child)); 1217Assert.Equal(value, settings.GetRow(child)); 1227Assert.Equal(value, settings.GetRow(child)); 1256Assert.Equal(value, settings.GetRow(child)); 1262Assert.Equal(value, settings.GetRow(child)); 1291Assert.Equal(value, settings.GetRow(child)); 1299Assert.Equal(value, settings.GetRow(child)); 1319Assert.Equal(1, settings.GetRow(child)); 1322Assert.Equal(2, settings.GetRow(child)); 1333Assert.Equal(1, settings.GetRow(child)); 1336Assert.Equal(2, settings.GetRow(child)); 1373Assert.Equal(1, settings.GetRow("control")); 1803Assert.Equal(-1, result.GetRow(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
65Assert.Equal(-1, settings.GetRow("simple")); 70Assert.Equal(1, settings.GetRow("name")); 75Assert.Equal(-1, settings.GetRow("invalidRow")); 80Assert.Equal(-1, settings.GetRow("invalidRowSpan")); 85Assert.Equal(-1, settings.GetRow("invalidColumn")); 90Assert.Equal(-1, settings.GetRow("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
523Assert.Equal(4, control.LayoutSettings.GetRow(controlWithName));