64 references to TableLayoutPanelCellPosition
System.Windows.Forms (6)
System\Windows\Forms\Layout\TableLayout.cs (3)
1328
return new
TableLayoutPanelCellPosition
(-1, -1);
1337
return new
TableLayoutPanelCellPosition
(-1, -1);
1347
return new
TableLayoutPanelCellPosition
(layoutInfo.ColumnStart, layoutInfo.RowStart);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (2)
58
return new
TableLayoutPanelCellPosition
(values[0], values[1]);
82
return new
TableLayoutPanelCellPosition
(
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
355
return new
TableLayoutPanelCellPosition
(GetColumn(control), GetRow(control));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
598
Table.SetCellPosition(control, new
TableLayoutPanelCellPosition
(newControlPosition.X, newControlPosition.Y));
1258
Table.SetCellPosition(e.Control, new
TableLayoutPanelCellPosition
(-1, -1));
System.Windows.Forms.Tests (56)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (21)
162
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), settings.GetCellPosition(child));
171
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), settings.GetCellPosition(child));
203
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), settings.GetCellPosition("control"));
449
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, -1) };
450
yield return new object[] { new
TableLayoutPanelCellPosition
(0, -1) };
451
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, 0) };
452
yield return new object[] { new
TableLayoutPanelCellPosition
(0, 0) };
453
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2) };
486
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, -1), 1 };
487
yield return new object[] { new
TableLayoutPanelCellPosition
(0, -1), 1 };
488
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, 0), 1 };
489
yield return new object[] { new
TableLayoutPanelCellPosition
(0, 0), 1 };
490
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), 1 };
622
settings.SetCellPosition(child, new
TableLayoutPanelCellPosition
(1, 1));
623
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 1), settings.GetCellPosition(child));
625
settings.SetCellPosition(child, new
TableLayoutPanelCellPosition
(2, 2));
626
Assert.Equal(new
TableLayoutPanelCellPosition
(2, 2), settings.GetCellPosition(child));
636
settings.SetCellPosition(child, new
TableLayoutPanelCellPosition
(1, 1));
637
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 1), settings.GetCellPosition(child));
639
settings.SetCellPosition(child, new
TableLayoutPanelCellPosition
(2, 2));
640
Assert.Equal(new
TableLayoutPanelCellPosition
(2, 2), settings.GetCellPosition(child));
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (16)
27
TableLayoutPanelCellPosition style =
new
(column, row);
35
Assert.Throws<ArgumentOutOfRangeException>("column", () => new
TableLayoutPanelCellPosition
(-2, 0));
41
Assert.Throws<ArgumentOutOfRangeException>("row", () => new
TableLayoutPanelCellPosition
(0, -2));
68
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), new
TableLayoutPanelCellPosition
(1, 2), true };
69
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), new
TableLayoutPanelCellPosition
(2, 2), false };
70
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), new
TableLayoutPanelCellPosition
(1, 3), false };
72
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), new(), false };
73
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), null, false };
93
TableLayoutPanelCellPosition position =
new
(1, 2);
112
yield return new object[] { "1,2", new
TableLayoutPanelCellPosition
(1, 2) };
113
yield return new object[] { " 1 , 2 ", new
TableLayoutPanelCellPosition
(1, 2) };
175
InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new
TableLayoutPanelCellPosition
(1, 2), typeof(InstanceDescriptor)));
213
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 2), position);
System\Windows\Forms\TableLayoutPanelTests.cs (19)
648
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), control.GetCellPosition(child));
896
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 2), control.GetPositionFromControl(child));
908
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 2), control.GetPositionFromControl(child));
919
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), control.GetPositionFromControl(child));
926
Assert.Equal(new
TableLayoutPanelCellPosition
(-1, -1), control.GetPositionFromControl(null));
1544
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, -1) };
1545
yield return new object[] { new
TableLayoutPanelCellPosition
(0, -1) };
1546
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, 0) };
1547
yield return new object[] { new
TableLayoutPanelCellPosition
(0, 0) };
1548
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2) };
1580
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, -1), 1 };
1581
yield return new object[] { new
TableLayoutPanelCellPosition
(0, -1), 1 };
1582
yield return new object[] { new
TableLayoutPanelCellPosition
(-1, 0), 1 };
1583
yield return new object[] { new
TableLayoutPanelCellPosition
(0, 0), 1 };
1584
yield return new object[] { new
TableLayoutPanelCellPosition
(1, 2), 1 };
1644
control.SetCellPosition(child, new
TableLayoutPanelCellPosition
(1, 1));
1645
Assert.Equal(new
TableLayoutPanelCellPosition
(1, 1), control.GetCellPosition(child));
1647
control.SetCellPosition(child, new
TableLayoutPanelCellPosition
(2, 2));
1648
Assert.Equal(new
TableLayoutPanelCellPosition
(2, 2), control.GetCellPosition(child));