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