25 writes to Size
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
307
Size
= newSize;
645
Size
= size;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
256
Size
= size;
System\Windows\Forms\Form.cs (3)
504
Size
= CommonProperties.GetSpecifiedBounds(this).Size;
1243
Size
= new Size(Math.Min(size.Width, value.Width), Math.Min(size.Height, value.Height));
1360
Size
= new Size(Math.Max(size.Width, value.Width), Math.Max(size.Height, value.Height));
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
286
set => base.
Size
= value;
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
108
Size
= new Size(700, 200)
System\Windows\Forms\FormTests.cs (4)
986
form.
Size
= new Size(200, 210);
991
form.
Size
= new Size(300, 310);
1015
form.
Size
= new Size(200, 210);
1020
form.
Size
= new Size(300, 310);
System.Windows.Forms.UI.IntegrationTests (12)
AnchorLayoutTests.cs (2)
265
form.
Size
= new Size(400, 600);
275
Size
= new Size(200, 300)
ButtonTests.cs (1)
412
Size
= new(500, 300),
DataGridViewTests.cs (1)
87
Size
= new(500, 300),
DesignBehaviorsTests.cs (2)
41
form.
Size
= new(600, 550);
73
form.
Size
= new Size(400, 400);
FormTests.cs (2)
35
form.
Size
= new Size(300, 310);
94
form.
Size
= new Size(300, 310);
ListViewTests.cs (1)
582
Size
= new Size(500, 400)
MonthCalendarTests.cs (2)
219
Size
= new(500, 300),
241
Size
= new(500, 300),
RichTextBoxTests.cs (1)
252
Size
= new(300, 300),
WinFormsControlsTest (1)
ToolStripSeparatorPreferredSize.cs (1)
87
Size
= new System.Drawing.Size(881, 150);
26 references to Size
System.Windows.Forms (15)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
1418
Size size = _dropDownHolder.
Size
;
4861
if (topControl.Size.Equals(dialog.
Size
))
System\Windows\Forms\Form.cs (11)
1240
Size size =
Size
;
1357
Size size =
Size
;
1372
Size
.Width,
1373
Size
.Height,
3851
Size s =
Size
;
4208
Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize,
Size
);
4486
_dpiFormSizes.Add(e.DeviceDpiOld,
Size
);
4551
desiredSize.Width = (int)(
Size
.Width * autoScaleFactor.Width);
4552
desiredSize.Height = (int)(
Size
.Height * autoScaleFactor.Height);
5879
/// Indicates whether the <see cref="
Size
"/> property should be persisted.
6463
_restoreBounds.Size =
Size
;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
24
MinimumSize =
Size
;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
285
get => base.
Size
;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
345
Size dropDownSize = _dropDownHolder.
Size
;
369
Size dropDownSize = _dropDownHolder.
Size
;
System.Windows.Forms.Tests (6)
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
146
Assert.Equal(new Size(control.Width, control.Height), control.
Size
);
System\Windows\Forms\FormTests.cs (5)
148
Assert.Equal(new Size(300, 300), control.
Size
);
995
Assert.NotEqual(new Size(300, 310), form.
Size
);
1000
Assert.Equal(new Size(300, 310), form.
Size
);
1024
Assert.NotEqual(new Size(300, 310), form.
Size
);
1029
Assert.Equal(new Size(300, 310), form.
Size
);
System.Windows.Forms.UI.IntegrationTests (2)
Dpi\FormDpiTests.cs (2)
142
Drawing.Size nonLinearSize = form.
Size
;
149
Assert.NotEqual(form.
Size
, nonLinearSize);
WinFormsControlsTest (1)
MainForm.cs (1)
297
MinimumSize =
Size
;