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