31 references to GetColumnSpan
System.Windows.Forms (3)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
184_tableLayoutSettings.GetColumnSpan(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
268Debug.Assert(GetColumnSpan(element) == value, "column span should equal to the value we set"); 531controlInfo.ColumnSpan = GetColumnSpan(c);
System.Windows.Forms.Tests (28)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (21)
302Assert.Equal(1, settings.GetColumnSpan(child)); 311Assert.Equal(1, settings.GetColumnSpan(child)); 320Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 328Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 336Assert.Throws<NotSupportedException>(() => settings.GetColumnSpan("control")); 344Assert.Equal(1, settings.GetColumnSpan("control")); 931Assert.Equal(value, settings.GetColumnSpan(child)); 939Assert.Equal(value, settings.GetColumnSpan(child)); 976Assert.Equal(value, settings.GetColumnSpan(child)); 986Assert.Equal(value, settings.GetColumnSpan(child)); 1013Assert.Equal(value, settings.GetColumnSpan(child)); 1019Assert.Equal(value, settings.GetColumnSpan(child)); 1046Assert.Equal(value, settings.GetColumnSpan(child)); 1054Assert.Equal(value, settings.GetColumnSpan(child)); 1074Assert.Equal(1, settings.GetColumnSpan(child)); 1077Assert.Equal(2, settings.GetColumnSpan(child)); 1088Assert.Equal(1, settings.GetColumnSpan(child)); 1091Assert.Equal(2, settings.GetColumnSpan(child)); 1112Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null)); 1129Assert.Equal(1, settings.GetColumnSpan("control")); 1800Assert.Equal(1, result.GetColumnSpan(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
68Assert.Equal(1, settings.GetColumnSpan("simple")); 73Assert.Equal(4, settings.GetColumnSpan("name")); 78Assert.Equal(1, settings.GetColumnSpan("invalidRow")); 83Assert.Equal(1, settings.GetColumnSpan("invalidRowSpan")); 88Assert.Equal(1, settings.GetColumnSpan("invalidColumn")); 93Assert.Equal(1, settings.GetColumnSpan("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
520Assert.Equal(1, control.LayoutSettings.GetColumnSpan(controlWithName));