31 references to GetColumn
System.Windows.Forms (4)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
240public int GetColumn(Control control) => _tableLayoutSettings.GetColumn(control);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (3)
355return new TableLayoutPanelCellPosition(GetColumn(control), GetRow(control)); 447Debug.Assert(!colSpecified || GetColumn(element) == column, "column position should equal to what we set"); 530controlInfo.Column = GetColumn(c);
System.Windows.Forms.Tests (27)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (20)
252Assert.Equal(-1, settings.GetColumn(child)); 261Assert.Equal(-1, settings.GetColumn(child)); 269Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 277Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null)); 285Assert.Throws<NotSupportedException>(() => settings.GetColumn("control")); 293Assert.Equal(-1, settings.GetColumn("control")); 693Assert.Equal(value, settings.GetColumn(child)); 701Assert.Equal(value, settings.GetColumn(child)); 741Assert.Equal(value, settings.GetColumn(child)); 751Assert.Equal(value, settings.GetColumn(child)); 780Assert.Equal(value, settings.GetColumn(child)); 786Assert.Equal(value, settings.GetColumn(child)); 815Assert.Equal(value, settings.GetColumn(child)); 823Assert.Equal(value, settings.GetColumn(child)); 843Assert.Equal(1, settings.GetColumn(child)); 846Assert.Equal(2, settings.GetColumn(child)); 857Assert.Equal(1, settings.GetColumn(child)); 860Assert.Equal(2, settings.GetColumn(child)); 897Assert.Equal(1, settings.GetColumn("control")); 1802Assert.Equal(-1, result.GetColumn(controlWithName));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (6)
67Assert.Equal(-1, settings.GetColumn("simple")); 72Assert.Equal(3, settings.GetColumn("name")); 77Assert.Equal(-1, settings.GetColumn("invalidRow")); 82Assert.Equal(-1, settings.GetColumn("invalidRowSpan")); 87Assert.Equal(-1, settings.GetColumn("invalidColumn")); 92Assert.Equal(-1, settings.GetColumn("invalidColumnSpan"));
System\Windows\Forms\TableLayoutPanelTests.cs (1)
522Assert.Equal(3, control.LayoutSettings.GetColumn(controlWithName));