37 writes to ClientSize
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1465
ClientSize
= ScaleSize(clientSize, dx, dy);
System\Windows\Forms\Form.cs (1)
734
set => base.
ClientSize
= value;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
49
ClientSize
= panelSize;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
173
ClientSize
= new Size(ClientSize.Width + requestedDelta, MinimumSize.Height);
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
29
set => Control.
ClientSize
= value;
System.Windows.Forms.Tests (32)
System\Windows\Forms\ControlTests.Handlers.cs (6)
2797
ClientSize
= new Size(10, 20)
2801
ClientSize
= new Size(10, 20)
2897
ClientSize
= new Size(10, 20)
2901
ClientSize
= new Size(10, 20)
2974
ClientSize
= new Size(10, 20)
2978
ClientSize
= new Size(10, 20)
System\Windows\Forms\ControlTests.Methods.cs (4)
4597
ClientSize
= new Size(10, 20)
4601
ClientSize
= new Size(10, 20)
4697
ClientSize
= new Size(10, 20)
4701
ClientSize
= new Size(10, 20)
System\Windows\Forms\ControlTests.Properties.cs (10)
3336
control.
ClientSize
= value;
3346
control.
ClientSize
= value;
3380
control.
ClientSize
= value;
3396
control.
ClientSize
= value;
3443
control.
ClientSize
= value;
3462
control.
ClientSize
= value;
3502
control.
ClientSize
= new Size(10, 10);
3508
control.
ClientSize
= new Size(10, 10);
3514
control.
ClientSize
= new Size(11, 11);
3522
control.
ClientSize
= new Size(10, 10);
System\Windows\Forms\ScrollableControlTests.cs (5)
218
ClientSize
= new Size(width, height)
711
ClientSize
= new Size(70, 80),
2330
ClientSize
= new Size(width, height)
2391
ClientSize
= new Size(width, height)
2535
ClientSize
= clientSize
System\Windows\Forms\TableLayoutPanelTests.cs (7)
977
ClientSize
= new Size(70, 80)
1022
ClientSize
= new Size(70, 80)
1045
ClientSize
= new Size(70, 80)
1065
ClientSize
= new Size(70, 80)
1085
ClientSize
= new Size(70, 80)
1105
ClientSize
= new Size(70, 80)
1125
ClientSize
= new Size(50, 50)
322 references to ClientSize
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (1)
8757
Rectangle clientBounds = new(clientOffset,
ClientSize
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
18821
Invalidate(new Rectangle(new Point(-pt.X, ColumnHeadersHeight), new Size(-step,
ClientSize
.Height)));
18831
Invalidate(new Rectangle(new Point(
ClientSize
.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight),
18832
new Size(step,
ClientSize
.Height)));
18839
new Size(-step,
ClientSize
.Width)));
18846
new Size(
ClientSize
.Width,
ClientSize
.Height - (pt.Y - rect.Bottom) - step)));
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
146
Size size =
ClientSize
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
61
Size size =
ClientSize
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
148
Size size =
ClientSize
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1856
Size size =
ClientSize
;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
669
Size clientSize = parent.
ClientSize
;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
375
noMansLand.X +=
ClientSize
.Width + 1;
376
noMansLand.Y +=
ClientSize
.Height + 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1462
Size clientSize =
ClientSize
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
193
_noMansLand.X += ToolStrip.
ClientSize
.Width + 1;
194
_noMansLand.Y += ToolStrip.
ClientSize
.Height + 1;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
631
Size size = tv.
ClientSize
;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
837
Rectangle clientArea = new(Point.Empty,
ClientSize
);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
259
int half_height =
ClientSize
.Height / 2;
318
if (half_height != (
ClientSize
.Height + 1) / 2)
System\Windows\Forms\Form.cs (1)
733
get => base.
ClientSize
;
System.Windows.Forms.Design (15)
System\ComponentModel\Design\ByteViewer.cs (1)
549
int rows = (
ClientSize
.Height - 2 * (BORDER_GAP + INSET_GAP)) / CELL_HEIGHT;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (5)
172
int requestedDelta = Math.Min((requestedSize.Width -
ClientSize
.Width), maxDelta);
173
ClientSize = new Size(
ClientSize
.Width + requestedDelta, MinimumSize.Height);
383
return WatermarkSize.Width <
ClientSize
.Width;
417
new RectangleF(0.0f, 0.0f,
ClientSize
.Width,
ClientSize
.Height),
System\Windows\Forms\Design\CommandSet.cs (3)
1323
int centerOfParentX = (viewParent.
ClientSize
.Width) / 2;
1324
int centerOfParentY = (viewParent.
ClientSize
.Height) / 2;
3289
Size parentSize = parentControl.
ClientSize
;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2115
if (Control is not null && Control.Size != Control.
ClientSize
&& Control.Parent is { } parent)
2119
Rectangle clientAreaScreenBounds = new(Control.PointToScreen(Point.Empty), Control.
ClientSize
);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
919
int parentHeight = parent.
ClientSize
.Height;
920
int parentWidth = parent.
ClientSize
.Width;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1079
Rectangle checkBounds = new(controlLoc, Control.
ClientSize
); // Can't use Control.Size since that will include any scrollbar
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
28
get => Control.
ClientSize
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
44
Assert.Equal(new Size(control.Width, control.Height), control.
ClientSize
);
System.Windows.Forms.Tests (284)
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (1)
24
Assert.Equal(ownerControl.
ClientSize
, accessibilityObject.Bounds.Size);
System\Windows\Forms\AxHostTests.cs (2)
49
Assert.Equal(new Size(75, 23), control.
ClientSize
);
143
Assert.Equal(new Size(75, 23), control.
ClientSize
);
System\Windows\Forms\ButtonBaseTests.cs (1)
41
Assert.Equal(new Size(75, 23), control.
ClientSize
);
System\Windows\Forms\ButtonTests.cs (1)
43
Assert.Equal(new Size(75, 23), control.
ClientSize
);
System\Windows\Forms\CheckBoxTests.cs (1)
45
Assert.Equal(new Size(104, 24), control.
ClientSize
);
System\Windows\Forms\ComboBoxTests.cs (1)
46
Assert.Equal(new Size(117, control.PreferredHeight - 4), control.
ClientSize
);
System\Windows\Forms\ContainerControlTests.cs (1)
49
Assert.Equal(Size.Empty, control.
ClientSize
);
System\Windows\Forms\ControlTests.cs (5)
36
Assert.Equal(Size.Empty, control.
ClientSize
);
125
Assert.Equal(Size.Empty, control.
ClientSize
);
222
Assert.Equal(new Size(width, height), control.
ClientSize
);
318
Assert.Equal(Size.Empty, control.
ClientSize
);
414
Assert.Equal(new Size(width, height), control.
ClientSize
);
System\Windows\Forms\ControlTests.Methods.cs (82)
7425
Assert.Equal(new Size(width, height), control.
ClientSize
);
7444
Assert.Equal(new Size(width, height), control.
ClientSize
);
7536
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
7555
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
7634
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
7653
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
7752
Assert.Equal(new Size(width, height), control.
ClientSize
);
7772
Assert.Equal(new Size(width, height), control.
ClientSize
);
7875
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
7897
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8023
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8050
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8212
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8231
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8323
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8342
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8421
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
8440
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
8609
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8629
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8732
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8754
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8880
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
8907
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9026
Assert.Equal(new Size(width, height), control.
ClientSize
);
9047
Assert.Equal(new Size(width, height), control.
ClientSize
);
9168
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9189
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9297
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
9318
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
9434
Assert.Equal(new Size(width, height), control.
ClientSize
);
9456
Assert.Equal(new Size(width, height), control.
ClientSize
);
9589
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9613
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9747
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9776
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
9824
Assert.Equal(value, control.
ClientSize
);
9834
Assert.Equal(value, control.
ClientSize
);
9858
Assert.Equal(value, control.
ClientSize
);
9874
Assert.Equal(value, control.
ClientSize
);
9906
Assert.Equal(value, control.
ClientSize
);
9925
Assert.Equal(value, control.
ClientSize
);
9965
Assert.Equal(new Size(10, 10), control.
ClientSize
);
9971
Assert.Equal(new Size(10, 10), control.
ClientSize
);
9977
Assert.Equal(new Size(11, 11), control.
ClientSize
);
9985
Assert.Equal(new Size(10, 10), control.
ClientSize
);
10381
Assert.Equal(Size.Empty, control.
ClientSize
);
10400
Assert.Equal(Size.Empty, control.
ClientSize
);
10440
Assert.True(control.
ClientSize
.Width > 0);
10441
Assert.True(control.
ClientSize
.Height >= 0);
10473
Assert.True(control.
ClientSize
.Width > 0);
10474
Assert.True(control.
ClientSize
.Height >= 0);
10555
Assert.Equal(Size.Empty, control.
ClientSize
);
10574
Assert.Equal(Size.Empty, control.
ClientSize
);
10647
Assert.Equal(Size.Empty, control.
ClientSize
);
10666
Assert.Equal(Size.Empty, control.
ClientSize
);
10738
Assert.Equal(Size.Empty, control.
ClientSize
);
10760
Assert.Equal(Size.Empty, control.
ClientSize
);
10805
Assert.Equal(new Size(3, 4), control.
ClientSize
);
10827
Assert.Equal(new Size(3, 4), control.
ClientSize
);
10883
Assert.Equal(new Size(3, 4), control.
ClientSize
);
10909
Assert.Equal(new Size(3, 4), control.
ClientSize
);
10995
Assert.Equal(new Size(width, height), control.
ClientSize
);
11014
Assert.Equal(new Size(width, height), control.
ClientSize
);
11106
Assert.Equal(new Size(width, height), control.
ClientSize
);
11125
Assert.Equal(new Size(width, height), control.
ClientSize
);
11204
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
11223
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
11313
Assert.Equal(new Size(width, height), control.
ClientSize
);
11333
Assert.Equal(new Size(width, height), control.
ClientSize
);
11436
Assert.Equal(new Size(width, height), control.
ClientSize
);
11458
Assert.Equal(new Size(width, height), control.
ClientSize
);
11565
Assert.Equal(new Size(width, height), control.
ClientSize
);
11592
Assert.Equal(new Size(width, height), control.
ClientSize
);
11690
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
11709
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
11799
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
11819
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
11934
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
11956
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
12063
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
12090
Assert.Equal(new Size(clientWidth, clientHeight), control.
ClientSize
);
System\Windows\Forms\ControlTests.Properties.cs (83)
2478
Assert.Equal(new Size(width, height), control.
ClientSize
);
2497
Assert.Equal(new Size(width, height), control.
ClientSize
);
2567
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
2586
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
2652
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
2671
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
2757
Assert.Equal(new Size(width, height), control.
ClientSize
);
2777
Assert.Equal(new Size(width, height), control.
ClientSize
);
2857
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
2879
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
2982
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
3009
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
3294
Assert.Equal(expected, control.
ClientSize
);
3337
Assert.Equal(value, control.
ClientSize
);
3347
Assert.Equal(value, control.
ClientSize
);
3381
Assert.Equal(value, control.
ClientSize
);
3397
Assert.Equal(value, control.
ClientSize
);
3444
Assert.Equal(value, control.
ClientSize
);
3463
Assert.Equal(value, control.
ClientSize
);
3503
Assert.Equal(new Size(10, 10), control.
ClientSize
);
3509
Assert.Equal(new Size(10, 10), control.
ClientSize
);
3515
Assert.Equal(new Size(11, 11), control.
ClientSize
);
3523
Assert.Equal(new Size(10, 10), control.
ClientSize
);
5728
Assert.Equal(new Size(0, value), control.
ClientSize
);
5747
Assert.Equal(new Size(0, value), control.
ClientSize
);
5838
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
5857
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
5926
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
5945
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
6034
Assert.Equal(new Size(0, value), control.
ClientSize
);
6054
Assert.Equal(new Size(0, value), control.
ClientSize
);
6146
Assert.Equal(new Size(0, expectedHeight), control.
ClientSize
);
6168
Assert.Equal(new Size(0, expectedHeight), control.
ClientSize
);
6283
Assert.Equal(new Size(0, expectedHeight), control.
ClientSize
);
6310
Assert.Equal(new Size(0, expectedHeight), control.
ClientSize
);
6691
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6713
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6783
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6805
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6881
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6906
Assert.Equal(new Size(0, 0), control.
ClientSize
);
6992
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7021
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7172
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7194
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7262
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7285
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7364
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7389
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7475
Assert.Equal(new Size(0, 0), control.
ClientSize
);
7505
Assert.Equal(new Size(0, 0), control.
ClientSize
);
11112
Assert.Equal(value, control.
ClientSize
);
11131
Assert.Equal(value, control.
ClientSize
);
11223
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
11242
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
11318
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
11337
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
11433
Assert.Equal(value, control.
ClientSize
);
11453
Assert.Equal(value, control.
ClientSize
);
11550
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
11572
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
11692
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
11719
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
12127
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12148
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12217
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12239
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12315
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12339
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12424
Assert.Equal(new Size(0, 0), control.
ClientSize
);
12453
Assert.Equal(new Size(0, 0), control.
ClientSize
);
13147
Assert.Equal(new Size(value, 0), control.
ClientSize
);
13166
Assert.Equal(new Size(value, 0), control.
ClientSize
);
13257
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
13276
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
13345
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
13364
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
13453
Assert.Equal(new Size(value, 0), control.
ClientSize
);
13473
Assert.Equal(new Size(value, 0), control.
ClientSize
);
13565
Assert.Equal(new Size(expectedWidth, 0), control.
ClientSize
);
13587
Assert.Equal(new Size(expectedWidth, 0), control.
ClientSize
);
13702
Assert.Equal(new Size(expectedWidth, 0), control.
ClientSize
);
13729
Assert.Equal(new Size(expectedWidth, 0), control.
ClientSize
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
47
Assert.Equal(new Size(96, control.PreferredHeight - 4), control.
ClientSize
);
System\Windows\Forms\DateTimePickerTests.cs (1)
50
Assert.Equal(new Size(196, control.PreferredHeight - 4), control.
ClientSize
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
44
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\DomainUpDownTests.cs (2)
59
_sub.
ClientSize
.Should().Be(new Size(120, Control.DefaultFont.Height + 7));
66
_sub.
ClientSize
.Should().Be(new Size(116, Control.DefaultFont.Height + 3));
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
43
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\GroupBoxTests.cs (1)
39
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\HScrollBarTests.cs (2)
43
Assert.True(control.
ClientSize
.Width > 0);
44
Assert.True(control.
ClientSize
.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
39
Assert.Equal(new Size(100, 23), control.
ClientSize
);
System\Windows\Forms\ListBoxTests.cs (1)
40
Assert.Equal(new Size(116, 92), control.
ClientSize
);
System\Windows\Forms\ListControlTests.cs (1)
40
Assert.Equal(Size.Empty, control.
ClientSize
);
System\Windows\Forms\ListViewTests.cs (1)
52
Assert.Equal(new Size(117, 93), control.
ClientSize
);
System\Windows\Forms\MdiClientTests.cs (11)
36
Assert.Equal(Size.Empty, control.
ClientSize
);
537
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
556
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
639
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
661
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
773
Assert.Equal(Size.Empty, control.
ClientSize
);
800
Assert.Equal(Size.Empty, control.
ClientSize
);
925
Assert.Equal(Size.Empty, control.
ClientSize
);
952
Assert.Equal(Size.Empty, control.
ClientSize
);
1087
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
1114
Assert.Equal(new Size(expectedClientWidth, expectedClientHeight), control.
ClientSize
);
System\Windows\Forms\MenuStripTests.cs (1)
44
Assert.Equal(new Size(200, 24), control.
ClientSize
);
System\Windows\Forms\MonthCalendarTests.cs (7)
48
Assert.True(control.
ClientSize
.Width > 0);
49
Assert.True(control.
ClientSize
.Height > 0);
2523
Size size = control.
ClientSize
;
2526
Assert.Equal(size, control.
ClientSize
);
2535
Assert.Equal(size, control.
ClientSize
);
2559
Assert.Equal(size, control.
ClientSize
);
2571
Assert.Equal(size, control.
ClientSize
);
System\Windows\Forms\PanelTests.cs (1)
44
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\PictureBoxTests.cs (1)
42
Assert.Equal(new Size(100, 50), control.
ClientSize
);
System\Windows\Forms\ProgressBarTests.cs (1)
39
Assert.Equal(new Size(100, 23), control.
ClientSize
);
System\Windows\Forms\PropertyGridTests.cs (1)
60
Assert.Equal(new Size(130, 130), control.
ClientSize
);
System\Windows\Forms\RadioButtonTests.cs (1)
44
Assert.Equal(new Size(104, 24), control.
ClientSize
);
System\Windows\Forms\RichTextBoxTests.cs (1)
53
Assert.Equal(new Size(96, 92), control.
ClientSize
);
System\Windows\Forms\ScrollableControlTests.cs (1)
43
Assert.Equal(Size.Empty, control.
ClientSize
);
System\Windows\Forms\ScrollBarTests.cs (1)
38
Assert.Equal(Size.Empty, control.
ClientSize
);
System\Windows\Forms\SplitterPanelTests.cs (9)
48
Assert.Equal(new Size(200, 100), control.
ClientSize
);
463
Assert.Equal(new Size(200, 100), control.
ClientSize
);
482
Assert.Equal(new Size(200, 100), control.
ClientSize
);
540
Assert.Equal(new Size(200, 100), control.
ClientSize
);
562
Assert.Equal(new Size(200, 100), control.
ClientSize
);
828
Assert.Equal(value, control.
ClientSize
);
847
Assert.Equal(value, control.
ClientSize
);
1185
Assert.Equal(new Size(200, 100), control.
ClientSize
);
1204
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\SplitterTests.cs (1)
38
Assert.Equal(new Size(3, 3), control.
ClientSize
);
System\Windows\Forms\StatusStripTests.cs (1)
44
Assert.Equal(new Size(200, 22), control.
ClientSize
);
System\Windows\Forms\TabControlTests.cs (1)
41
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
46
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\TabPageTests.cs (18)
48
Assert.Equal(new Size(200, 100), control.
ClientSize
);
157
Assert.Equal(new Size(200, 100), control.
ClientSize
);
1898
Assert.Equal(new Size(200, 100), control.
ClientSize
);
1920
Assert.Equal(new Size(200, 100), control.
ClientSize
);
1988
Assert.Equal(new Size(200, 100), control.
ClientSize
);
2011
Assert.Equal(new Size(200, 100), control.
ClientSize
);
2089
Assert.Equal(new Size(200, 100), control.
ClientSize
);
2114
Assert.Equal(new Size(200, 100), control.
ClientSize
);
2213
Assert.Equal(expected.Size, control.
ClientSize
);
2243
Assert.Equal(expected.Size, control.
ClientSize
);
4345
Assert.Equal(new Size(width, height), control.
ClientSize
);
4366
Assert.Equal(new Size(width, height), control.
ClientSize
);
4482
Assert.Equal(new Size(width, height), control.
ClientSize
);
4504
Assert.Equal(new Size(width, height), control.
ClientSize
);
4637
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
4661
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
4815
Assert.Equal(expected.Size, control.
ClientSize
);
4845
Assert.Equal(expected.Size, control.
ClientSize
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
46
Assert.Equal(new Size(200, 100), control.
ClientSize
);
939
Assert.Equal(new Size(200, 100), control.
ClientSize
);
961
Assert.Equal(new Size(200, 100), control.
ClientSize
);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
48
Assert.Equal(new Size(100, 25), control.
ClientSize
);
1965
Assert.Equal(new Size(100, 25), control.
ClientSize
);
1987
Assert.Equal(new Size(100, 25), control.
ClientSize
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
45
Assert.Equal(Size.Empty, control.
ClientSize
);
System\Windows\Forms\ToolStripTests.cs (2)
48
Assert.Equal(new Size(100, 25), control.
ClientSize
);
206
Assert.Equal(new Size(100, 25), control.
ClientSize
);
System\Windows\Forms\TreeViewTests.cs (2)
39
Assert.Equal(117, control.
ClientSize
.Width);
40
Assert.Equal(93, control.
ClientSize
.Height);
System\Windows\Forms\UpDownBaseTests.cs (6)
46
Assert.Equal(new Size(120, Control.DefaultFont.Height + 7), control.
ClientSize
);
53
Assert.Equal(new Size(116, Control.DefaultFont.Height + 3), control.
ClientSize
);
2755
Assert.Equal(new Size(width, Control.DefaultFont.Height + 7), control.
ClientSize
);
2761
Assert.Equal(new Size(width - 4, Control.DefaultFont.Height + 3), control.
ClientSize
);
2787
Assert.Equal(new Size(width, Control.DefaultFont.Height + 7), control.
ClientSize
);
2793
Assert.Equal(new Size(width - 4, Control.DefaultFont.Height + 3), control.
ClientSize
);
System\Windows\Forms\UserControlTests.cs (1)
49
Assert.Equal(new Size(150, 150), control.
ClientSize
);
System\Windows\Forms\VScrollBarTests.cs (2)
42
Assert.True(control.
ClientSize
.Width > 0);
43
Assert.True(control.
ClientSize
.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
38
Assert.Equal(new Size(250, 250), control.
ClientSize
);
TextBoxBaseTests.cs (6)
6536
Assert.Equal(new Size(width - 4, s_preferredHeight - 4), control.
ClientSize
);
6557
Assert.Equal(new Size(width - 4, s_preferredHeight - 4), control.
ClientSize
);
6670
Assert.Equal(new Size(width - 4, height - 4), control.
ClientSize
);
6691
Assert.Equal(new Size(width - 4, height - 4), control.
ClientSize
);
6786
Assert.Equal(new Size(width - 4, height - 4), control.
ClientSize
);
6807
Assert.Equal(new Size(width - 4, height - 4), control.
ClientSize
);
TextBoxTests.cs (1)
46
Assert.Equal(new Size(96, control.PreferredHeight - 4), control.
ClientSize
);
TrackBarTests.cs (3)
39
Assert.Equal(new Size(104, s_dimension), control.
ClientSize
);
2996
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
3017
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
WebBrowserBaseTests.cs (4)
75
Assert.Equal(new Size(width, height), control.
ClientSize
);
94
Assert.Equal(new Size(width, height), control.
ClientSize
);
191
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);
213
Assert.Equal(new Size(expectedWidth, expectedHeight), control.
ClientSize
);