1 write to _tableLayoutPanel
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
21
_tableLayoutPanel
= new();
28 references to _tableLayoutPanel
System.Windows.Forms.Design.Tests (28)
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (28)
22
_designer.Initialize(
_tableLayoutPanel
);
23
_collection = new(
_tableLayoutPanel
);
29
_tableLayoutPanel
.Dispose();
35
_tableLayoutPanel
.RowCount = 5;
39
_tableLayoutPanel
.RowCount.Should().Be(3);
48
_tableLayoutPanel
.ColumnCount = 5;
52
_tableLayoutPanel
.ColumnCount.Should().Be(3);
59
_tableLayoutPanel
.ColumnCount.Should().Be(0);
81
_tableLayoutPanel
.ColumnCount = 1;
82
_tableLayoutPanel
.RowCount = 1;
90
_tableLayoutPanel
.ColumnCount = 2;
91
_tableLayoutPanel
.RowCount = 2;
138
designer.Initialize(
_tableLayoutPanel
);
144
_tableLayoutPanel
.ControlAdded += It.IsAny<ControlEventHandler>();
145
_tableLayoutPanel
.ControlRemoved += It.IsAny<ControlEventHandler>();
157
foreach (Control control in
_tableLayoutPanel
.Controls)
171
_tableLayoutPanel
.RowCount.Should().Be(2);
172
_tableLayoutPanel
.ColumnCount.Should().Be(2);
173
_tableLayoutPanel
.RowStyles.Count.Should().Be(2);
174
_tableLayoutPanel
.ColumnStyles.Count.Should().Be(2);
189
_tableLayoutPanel
.Controls.Add(button);
196
_collection.IsReadOnly.Should().Be(
_tableLayoutPanel
.Controls.IsReadOnly);
204
_tableLayoutPanel
.Controls.Contains(button).Should().BeTrue();
217
_tableLayoutPanel
.Controls.Contains(button1).Should().BeTrue();
218
_tableLayoutPanel
.Controls.Contains(button2).Should().BeTrue();
239
TableLayoutPanelDesigner.DesignerTableLayoutControlCollection collection1 = new(
_tableLayoutPanel
);
240
TableLayoutPanelDesigner.DesignerTableLayoutControlCollection collection2 = new(
_tableLayoutPanel
);
289
TableLayoutPanelCellPosition position =
_tableLayoutPanel
.GetPositionFromControl(button);