30 references to GetRowSpan
System.Windows.Forms (3)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
197
public int GetRowSpan(Control control) => _tableLayoutSettings.
GetRowSpan
(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
306
Debug.Assert(
GetRowSpan
(element) == value, "row span should equal to the value we set");
529
controlInfo.RowSpan =
GetRowSpan
(c);
System.Windows.Forms.Tests (27)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (20)
403
Assert.Equal(1, settings.
GetRowSpan
(child));
412
Assert.Equal(1, settings.
GetRowSpan
(child));
420
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRowSpan
(null));
428
Assert.Throws<ArgumentNullException>("control", () => settings.
GetRowSpan
(null));
436
Assert.Throws<NotSupportedException>(() => settings.
GetRowSpan
("control"));
444
Assert.Equal(1, settings.
GetRowSpan
("control"));
1407
Assert.Equal(value, settings.
GetRowSpan
(child));
1415
Assert.Equal(value, settings.
GetRowSpan
(child));
1452
Assert.Equal(value, settings.
GetRowSpan
(child));
1462
Assert.Equal(value, settings.
GetRowSpan
(child));
1489
Assert.Equal(value, settings.
GetRowSpan
(child));
1495
Assert.Equal(value, settings.
GetRowSpan
(child));
1522
Assert.Equal(value, settings.
GetRowSpan
(child));
1530
Assert.Equal(value, settings.
GetRowSpan
(child));
1550
Assert.Equal(1, settings.
GetRowSpan
(child));
1553
Assert.Equal(2, settings.
GetRowSpan
(child));
1564
Assert.Equal(1, settings.
GetRowSpan
(child));
1567
Assert.Equal(2, settings.
GetRowSpan
(child));
1604
Assert.Equal(1, settings.
GetRowSpan
("control"));
1801
Assert.Equal(1, result.
GetRowSpan
(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
66
Assert.Equal(1, settings.
GetRowSpan
("simple"));
71
Assert.Equal(2, settings.
GetRowSpan
("name"));
76
Assert.Equal(1, settings.
GetRowSpan
("invalidRow"));
81
Assert.Equal(1, settings.
GetRowSpan
("invalidRowSpan"));
86
Assert.Equal(1, settings.
GetRowSpan
("invalidColumn"));
91
Assert.Equal(1, settings.
GetRowSpan
("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
521
Assert.Equal(2, control.LayoutSettings.
GetRowSpan
(controlWithName));