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