843 references to Empty
System.Drawing.Common.Tests (10)
System\Drawing\GraphicsTests.cs (9)
1648Assert.ThrowsAny<ArgumentException>(() => graphics.CopyFromScreen(1, 2, 3, 4, Size.Empty, copyPixelOperation)); 1660Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty)); 1661Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.DestinationInvert)); 1662Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty)); 1663Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.DestinationInvert)); 1678AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty)); 1679AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.MergeCopy)); 1680AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty)); 1681AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.MergeCopy));
System\Drawing\ToolboxBitmapAttributeTests.cs (1)
38if (size == Size.Empty)
System.Windows.Forms (122)
System\Windows\Forms\Control.cs (9)
1594protected virtual Size DefaultSize => Size.Empty; 2473if (value == Size.Empty) 3742get { return GetPreferredSize(Size.Empty); } 5193if (MaximumSize != Size.Empty || MinimumSize != Size.Empty) 9709MinimumSize = Size.Empty; 9710MaximumSize = Size.Empty; 9757LayoutUtils.UnionSizes(Size.Empty, minSize), // make sure we don't go below 0. 9766LayoutUtils.UnionSizes(Size.Empty, maxSize), // make sure we don't go below 0.
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
575ImageSize = Size.Empty, 602ImageSize = (Control.Image is null) ? Size.Empty : Control.Image.Size,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (8)
201Size checkSize = checkSizeLinear > 0 ? new(checkSizeLinear + 1, checkSizeLinear) : Size.Empty; 205Size requiredImageSize = (ImageSize != Size.Empty) ? ImageSize + textImageInsetSize : Size.Empty; 211Size textSize = Size.Empty; 286layout.Focus = ImageSize != Size.Empty 490if (ImageSize == Size.Empty || Text is null || Text.Length == 0 || textImageRelation == TextImageRelation.Overlay) 497if (layout.Options.DotNetOneButtonCompat && ImageSize != Size.Empty) 663Size textSize = Size.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
816Size textExtent = Size.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2302return GetPreferredSize(screen, dataGridViewCellStyle, rowIndex, Size.Empty);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
568glyphSize = Size.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (4)
431preferredSize = Size.Empty; 443preferredSize = Size.Empty; 466preferredSize = Size.Empty; 478preferredSize = Size.Empty;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
602Size borderSize = SizeFromClientSize(Size.Empty);
System\Windows\Forms\Controls\Labels\Label.cs (2)
1021bordersAndPadding += SizeFromClientSize(Size.Empty); 1058proposedConstraints = LayoutUtils.UnionSizes(proposedConstraints, Size.Empty);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
139private Size _tileSize = Size.Empty; 1650return Size.Empty; 1701return !_tileSize.Equals(Size.Empty);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1040Size bordersAndPadding = SizeFromClientSize(Size.Empty) + Padding.Size;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
428Size scrollBarPadding = Size.Empty;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
24private static readonly Size s_defaultItemSize = Size.Empty;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
403Size scrollBarPadding = Size.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
821Size bordersAndPadding = SizeFromClientSize(Size.Empty) + Padding.Size;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
449size = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (2)
15private Size _cachedHDCSize = Size.Empty; 64_cachedHDCSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
55private Size _largestDisplayedItemSize = Size.Empty; 2269Size maxSize = Size.Empty; 2332Size maxSize = Size.Empty; 2396return item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size; 4239Size biggestItemSize = Size.Empty; // used in determining OnPaint caching.
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1052internal Size GetSuggestedSize() => AutoSize ? GetPreferredSize(Size.Empty) : Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (8)
14private Size _maxItemSize = Size.Empty; 275Size maxTextSize = Size.Empty; 276Size maxImageSize = Size.Empty; 278Size maxArrowSize = Size.Empty; 279Size maxNonMenuItemSize = Size.Empty; 307Size imageSize = Size.Empty; 794Size upSize = UpScrollButton.GetPreferredSize(Size.Empty); 800Size downSize = DownScrollButton.GetPreferredSize(Size.Empty);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
77Size preferredSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
567content.Size = LayoutUtils.UnionSizes(Size.Empty, content.Size); 1553return Size.Empty; 1569? Owner?.ImageList?.ImageSize ?? Size.Empty 1570: (image is null) ? Size.Empty : image.Size; 2347return Size.Empty; 2349else if (_cachedTextSize == Size.Empty) 2811_cachedTextSize = Size.Empty; 2990_cachedTextSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
175return Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
49private Size _cachedShortcutSize = Size.Empty; 176_cachedShortcutSize = Size.Empty; 723return Size.Empty; 729return Size.Empty; 732if (_cachedShortcutSize == Size.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
134Size biggestItemSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
44MinimumSize = Size.Empty; // consider 1,1
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
341if (toolStrip.MinimumSize == Size.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
84Size totalSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
86Size totalSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
347Rectangle bounds = new(Point.Empty, item?.Size ?? Size.Empty);
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
125Size preferredSize = Size.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
36return Size.Empty; 270itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size; 412itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.Size;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
53private Size _webBrowserBaseChangingSize = Size.Empty;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
19private Size _maxSize = Size.Empty;
System\Windows\Forms\Form.cs (5)
149private Size _autoScaleBaseSize = Size.Empty; 150private Size _minAutoSize = Size.Empty; 502_minAutoSize = Size.Empty; 1193get => Properties.TryGetValue(s_propMaxTrackSize, out Size maximumSize) ? maximumSize : Size.Empty; 5933_autoScaleBaseSize = Size.Empty;
System\Windows\Forms\Input\Cursor.cs (1)
22private static Size s_cursorSize = Size.Empty;
System\Windows\Forms\Layout\CommonProperties.cs (5)
348Debug.Assert(xGetPreferredSizeCache(element) == Size.Empty, "Error detected in xClearPreferredSizeCache."); 373/// value of <see cref="LayoutUtils.s_maxSize"/> (or <see cref="Size.Empty"/> too). 382return Size.Empty; 391value == Size.Empty || value != xGetPreferredSizeCache(element), 681return Size.Empty;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
685Size borderSize = SizeFromClientSize(Size.Empty);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
381Size preferredSize = Size.Empty; 635Size preferredSizeForDocking = Size.Empty; 1113Size prefSize = Size.Empty;
System\Windows\Forms\Layout\FlowLayout.cs (2)
65Size layoutSize = Size.Empty; 167Size rowSize = Size.Empty;
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
69public virtual Size MinimumSize => CommonProperties.GetMinimumSize(Element!, Size.Empty);
System\Windows\Forms\Layout\LayoutEngine.cs (1)
22return Size.Empty;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
45Size largestSize = Size.Empty;
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
385return Size.Empty;
System\Windows\Forms\Layout\TableLayout.cs (2)
619Size preferredSize = Size.Empty; 732maxWidth = GetElementSize(element, Size.Empty).Width;
System\Windows\Forms\Panels\Panel.cs (1)
155Size borderSize = SizeFromClientSize(Size.Empty);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
223get => Collapsed ? Size.Empty : base.Size;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
47private Size _imageSize = Size.Empty; 556SetVirtualSizeNoInvalidate(Size.Empty);
System\Windows\Forms\Rendering\TextExtensions.cs (2)
221return Size.Empty; 286return Size.Empty;
System\Windows\Forms\Rendering\TextRenderer.cs (2)
518return Size.Empty; 536return Size.Empty;
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
22private Size _userAutoScrollMinSize = Size.Empty; 32private Size _scrollMargin = Size.Empty; 37private Size _requestedScrollMargin = Size.Empty; 935private void ResetAutoScrollMargin() => AutoScrollMargin = Size.Empty; 937private void ResetAutoScrollMinSize() => AutoScrollMinSize = Size.Empty; 1131private bool ShouldSerializeAutoScrollMargin() => !AutoScrollMargin.Equals(Size.Empty); 1137private bool ShouldSerializeAutoScrollMinSize() => !AutoScrollMinSize.Equals(Size.Empty);
System\Windows\Forms\SystemInformation.cs (2)
771: Size.Empty; 786: Size.Empty;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1538bubbleSize = Size.Empty;
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
363return Size.Empty;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
57Size subtitleSize = Size.Empty;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (6)
21private Size _watermarkSize = Size.Empty; 128_minimumSize = Size.Empty; 129_watermarkSize = Size.Empty; 231private Size _minimumSize = Size.Empty; 237if (_minimumSize == Size.Empty) 356if (_watermarkSize == Size.Empty)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
110_parentGridSize = Size.Empty; 874_parentGridSize = Size.Empty;
System\Windows\Forms\Design\CommandSet.cs (11)
593return prop is not null ? (Size)prop.GetValue(comp)! : Size.Empty; 623snapSize = gridSizeProp is not null ? (Size)gridSizeProp.GetValue(snapComponent)! : Size.Empty; 1117Size gridSize = Size.Empty; 2296Size primarySize = Size.Empty; 2395Size grid = Size.Empty; 2529Size grid = Size.Empty; 2557Size curSize = Size.Empty, lastSize = Size.Empty; 2598curSize = Size.Empty; 2622curSize = Size.Empty; 3290Size gridSize = Size.Empty;
System\Windows\Forms\Design\ComponentTray.cs (2)
30private Size _grabHandle = Size.Empty; // Size of the grab handles. 2803private Size _snapSize = Size.Empty;
System\Windows\Forms\Design\ControlCommandSet.cs (2)
435snapSize = Size.Empty; 683Size snapSize = Size.Empty;
System\Windows\Forms\Design\DesignerUtils.cs (2)
20private static Size s_minDragSize = Size.Empty; 142if (s_minDragSize == Size.Empty)
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
21private Size _autoScaleBaseSize = Size.Empty;
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
50private Size _gridSize = Size.Empty; 435Size size = Size.Empty; 952if (size != Size.Empty)
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\ByteViewerTests.cs (6)
24Assert.Equal(Size.Empty, control.AutoScrollMargin); 25Assert.Equal(Size.Empty, control.AutoScrollMinSize); 60Assert.Equal(Size.Empty, control.DefaultMaximumSize); 61Assert.Equal(Size.Empty, control.DefaultMinimumSize); 98Assert.Equal(Size.Empty, control.MaximumSize); 99Assert.Equal(Size.Empty, control.MinimumSize);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
319GetIconResourceAsBestMatchBitmap(type, resource, Size.Empty);
System.Windows.Forms.Tests (669)
System\Windows\Forms\AxHostTests.cs (8)
62Assert.Equal(Size.Empty, control.DefaultMaximumSize); 63Assert.Equal(Size.Empty, control.DefaultMinimumSize); 90Assert.Equal(Size.Empty, control.MaximumSize); 91Assert.Equal(Size.Empty, control.MinimumSize); 156Assert.Equal(Size.Empty, control.DefaultMaximumSize); 157Assert.Equal(Size.Empty, control.DefaultMinimumSize); 184Assert.Equal(Size.Empty, control.MaximumSize); 185Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ButtonBaseTests.cs (5)
53Assert.Equal(Size.Empty, control.DefaultMaximumSize); 54Assert.Equal(Size.Empty, control.DefaultMinimumSize); 88Assert.Equal(Size.Empty, control.MaximumSize); 89Assert.Equal(Size.Empty, control.MinimumSize); 4997yield return new object[] { flatStyle, Size.Empty };
System\Windows\Forms\ButtonTests.cs (30)
55Assert.Equal(Size.Empty, control.DefaultMaximumSize); 56Assert.Equal(Size.Empty, control.DefaultMinimumSize); 91Assert.Equal(Size.Empty, control.MaximumSize); 92Assert.Equal(Size.Empty, control.MinimumSize); 596Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.Empty)); 601Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.Empty)); 697Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.Empty)); 702Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.Empty)); 952Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.Empty)); 957Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.Empty)); 1167yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(14, 9) }; 1180yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1216yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(18, 15) }; 1229yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1266yield return new object[] { AutoSizeMode.GrowAndShrink, Size.Empty, new Size(18, 15) }; 1279yield return new object[] { AutoSizeMode.GrowOnly, Size.Empty, new Size(18, 15) }; 1317yield return new object[] { Size.Empty }; 1376yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(8, 8) }; 1389yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1402yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(6, 6) }; 1417yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1454yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1467yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1480yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1495yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(75, 23) }; 1533yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1546yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.Empty, new Size(12, 14) }; 1561yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(10, 12) }; 1574yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.Empty, new Size(10, 12) }; 1613yield return new object[] { Size.Empty };
System\Windows\Forms\CheckBoxTests.cs (4)
57Assert.Equal(Size.Empty, control.DefaultMaximumSize); 58Assert.Equal(Size.Empty, control.DefaultMinimumSize); 92Assert.Equal(Size.Empty, control.MaximumSize); 93Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ComboBoxTests.cs (4)
60Assert.Equal(Size.Empty, control.DefaultMaximumSize); 61Assert.Equal(Size.Empty, control.DefaultMinimumSize); 102Assert.Equal(Size.Empty, control.MaximumSize); 103Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ContainerControlTests.cs (10)
29Assert.Equal(Size.Empty, control.AutoScrollMargin); 31Assert.Equal(Size.Empty, control.AutoScrollMinSize); 49Assert.Equal(Size.Empty, control.ClientSize); 61Assert.Equal(Size.Empty, control.DefaultMaximumSize); 62Assert.Equal(Size.Empty, control.DefaultMinimumSize); 64Assert.Equal(Size.Empty, control.DefaultSize); 96Assert.Equal(Size.Empty, control.MaximumSize); 97Assert.Equal(Size.Empty, control.MinimumSize); 100Assert.Equal(Size.Empty, control.PreferredSize); 110Assert.Equal(Size.Empty, control.Size);
System\Windows\Forms\ControlTests.cs (34)
36Assert.Equal(Size.Empty, control.ClientSize); 48Assert.Equal(Size.Empty, control.DefaultMaximumSize); 49Assert.Equal(Size.Empty, control.DefaultMinimumSize); 51Assert.Equal(Size.Empty, control.DefaultSize); 74Assert.Equal(Size.Empty, control.MaximumSize); 75Assert.Equal(Size.Empty, control.MinimumSize); 78Assert.Equal(Size.Empty, control.PreferredSize); 88Assert.Equal(Size.Empty, control.Size); 125Assert.Equal(Size.Empty, control.ClientSize); 137Assert.Equal(Size.Empty, control.DefaultMaximumSize); 138Assert.Equal(Size.Empty, control.DefaultMinimumSize); 140Assert.Equal(Size.Empty, control.DefaultSize); 163Assert.Equal(Size.Empty, control.MaximumSize); 164Assert.Equal(Size.Empty, control.MinimumSize); 167Assert.Equal(Size.Empty, control.PreferredSize); 177Assert.Equal(Size.Empty, control.Size); 233Assert.Equal(Size.Empty, control.DefaultMaximumSize); 234Assert.Equal(Size.Empty, control.DefaultMinimumSize); 236Assert.Equal(Size.Empty, control.DefaultSize); 259Assert.Equal(Size.Empty, control.MaximumSize); 260Assert.Equal(Size.Empty, control.MinimumSize); 318Assert.Equal(Size.Empty, control.ClientSize); 329Assert.Equal(Size.Empty, control.DefaultMaximumSize); 330Assert.Equal(Size.Empty, control.DefaultMinimumSize); 332Assert.Equal(Size.Empty, control.DefaultSize); 355Assert.Equal(Size.Empty, control.MaximumSize); 356Assert.Equal(Size.Empty, control.MinimumSize); 359Assert.Equal(Size.Empty, control.PreferredSize); 369Assert.Equal(Size.Empty, control.Size); 425Assert.Equal(Size.Empty, control.DefaultMaximumSize); 426Assert.Equal(Size.Empty, control.DefaultMinimumSize); 428Assert.Equal(Size.Empty, control.DefaultSize); 451Assert.Equal(Size.Empty, control.MaximumSize); 452Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ControlTests.Methods.cs (100)
2316yield return new object[] { Size.Empty }; 2328Assert.Equal(Size.Empty, control.GetPreferredSize(proposedSize)); 2332Assert.Equal(Size.Empty, control.GetPreferredSize(proposedSize)); 2354yield return new object[] { Size.Empty, Size.Empty, new Size(30, 40), Size.Empty }; 2355yield return new object[] { new Size(10, 20), Size.Empty, new Size(30, 40), new Size(10, 20) }; 2356yield return new object[] { new Size(30, 40), Size.Empty, new Size(30, 40), new Size(30, 40) }; 2357yield return new object[] { new Size(31, 40), Size.Empty, new Size(30, 40), new Size(31, 40) }; 2358yield return new object[] { new Size(30, 41), Size.Empty, new Size(30, 40), new Size(30, 41) }; 2359yield return new object[] { new Size(40, 50), Size.Empty, new Size(30, 40), new Size(40, 50) }; 2360yield return new object[] { Size.Empty, new Size(20, 10), new Size(30, 40), Size.Empty }; 2361yield return new object[] { Size.Empty, new Size(30, 40), new Size(30, 40), Size.Empty }; 2362yield return new object[] { Size.Empty, new Size(31, 40), new Size(30, 40), Size.Empty }; 2363yield return new object[] { Size.Empty, new Size(30, 41), new Size(30, 40), Size.Empty }; 2364yield return new object[] { Size.Empty, new Size(40, 50), new Size(30, 40), Size.Empty }; 7422yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, 30, 40, 1 }; 7423yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, 30, 40, 1 }; 7424yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, 30, 40, 0 }; 7425yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, 31, 40, 0 }; 7426yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, 30, 41, 0 }; 7427yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, 40, 50, 0 }; 7428yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, 20, 10, 1 }; 7429yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, 30, 40, 1 }; 7430yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, 30, 40, 1 }; 7431yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, 30, 40, 1 }; 7432yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, 30, 40, 1 }; 8209yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 8210yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 8211yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 0 }; 8212yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 31, 40, 0 }; 8213yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 41, 0 }; 8214yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 40, 50, 0 }; 8215yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 20, 10, 1 }; 8216yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 8217yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 8218yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 8219yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 }; 9029yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 9030yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 9031yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, specified, 30, 40, 1, 0 }; 9032yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, specified, 31, 40, 1, 0 }; 9033yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, specified, 30, 41, 1, 0 }; 9034yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, specified, 40, 50, 1, 0 }; 9035yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, specified, 20, 10, 1, 1 }; 9036yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 9037yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 9038yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 9039yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, specified, 30, 40, 1, 1 }; 10096yield return new object[] { Size.Empty }; 10339Assert.Equal(Size.Empty, control.ClientSize); 10342Assert.Equal(Size.Empty, control.Size); 10358Assert.Equal(Size.Empty, control.ClientSize); 10361Assert.Equal(Size.Empty, control.Size); 10513Assert.Equal(Size.Empty, control.ClientSize); 10516Assert.Equal(Size.Empty, control.Size); 10532Assert.Equal(Size.Empty, control.ClientSize); 10535Assert.Equal(Size.Empty, control.Size); 10605Assert.Equal(Size.Empty, control.ClientSize); 10608Assert.Equal(Size.Empty, control.Size); 10624Assert.Equal(Size.Empty, control.ClientSize); 10627Assert.Equal(Size.Empty, control.Size); 10696Assert.Equal(Size.Empty, control.ClientSize); 10699Assert.Equal(Size.Empty, control.Size); 10718Assert.Equal(Size.Empty, control.ClientSize); 10721Assert.Equal(Size.Empty, control.Size); 10992yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, 1 }; 10993yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, 1 }; 10994yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, 0 }; 10995yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, 1 }; 10996yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, 1 }; 10997yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, 1 }; 10998yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, 1 }; 10999yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, 1 }; 11000yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, 1 }; 11001yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, 1 }; 11002yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, 1 }; 12482yield return new object[] { Size.Empty, (IntPtr)(-1) }; 12483yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0) }; 12484yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2) }; 12485yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2) }; 12521yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero, false }; 12522yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 12523yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 12524yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true }; 12525yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true }; 12595yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero }; 12596yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 12597yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 12598yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero }; 12599yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
System\Windows\Forms\ControlTests.Properties.cs (85)
3284yield return new object[] { new Control(), Size.Empty }; 3285yield return new object[] { new NonZeroWidthBorderedControl(), Size.Empty }; 3286yield return new object[] { new NonZeroHeightBorderedControl(), Size.Empty }; 5767yield return new object[] { Size.Empty, Size.Empty, 40, 0, 40, 1 }; 5768yield return new object[] { new Size(10, 20), Size.Empty, 40, 10, 40, 1 }; 5769yield return new object[] { new Size(30, 40), Size.Empty, 40, 30, 40, 0 }; 5770yield return new object[] { new Size(31, 40), Size.Empty, 40, 31, 40, 0 }; 5771yield return new object[] { new Size(30, 41), Size.Empty, 40, 30, 41, 0 }; 5772yield return new object[] { new Size(40, 50), Size.Empty, 40, 40, 50, 0 }; 5773yield return new object[] { Size.Empty, new Size(20, 10), 40, 0, 10, 1 }; 5774yield return new object[] { Size.Empty, new Size(30, 40), 40, 0, 40, 1 }; 5775yield return new object[] { Size.Empty, new Size(31, 40), 40, 0, 40, 1 }; 5776yield return new object[] { Size.Empty, new Size(30, 41), 40, 0, 40, 1 }; 5777yield return new object[] { Size.Empty, new Size(40, 50), 40, 0, 40, 1 }; 7881yield return new object[] { new Control(), Size.Empty }; 7911yield return new object[] { Size.Empty }; 7935Assert.Equal(Size.Empty, control.Size); 7942Assert.Equal(Size.Empty, control.Size); 7960Assert.Equal(Size.Empty, control.Size); 7967Assert.Equal(Size.Empty, control.Size); 7974yield return new object[] { new Size(2, 3), Size.Empty, new Size(2, 3), 0 }; 8083yield return new object[] { Size.Empty, 0 }; 8120Assert.Equal(Size.Empty, control.Size); 8128Assert.Equal(Size.Empty, control.Size); 8138yield return new object[] { Size.Empty, 0 }; 8176Assert.Equal(Size.Empty, control.Size); 8185Assert.Equal(Size.Empty, control.Size); 8211Assert.Equal(Size.Empty, control.Size); 8221Assert.Equal(Size.Empty, control.Size); 8249Assert.Equal(Size.Empty, control.Size); 8259Assert.Equal(Size.Empty, control.Size); 8342Assert.Equal(Size.Empty, control.Size); 8357Assert.Equal(Size.Empty, control.Size); 8410Assert.Equal(Size.Empty, control.Size); 8425Assert.Equal(Size.Empty, control.Size); 8460Assert.Equal(Size.Empty, control.MaximumSize); 8484Assert.Equal(Size.Empty, control.MaximumSize); 8490yield return new object[] { new Control(), Size.Empty }; 8520yield return new object[] { Size.Empty, Size.Empty, 0 }; 8525yield return new object[] { new Size(-1, -2), Size.Empty, 0 }; 8564yield return new object[] { Size.Empty, new Size(1, 2), 0 }; 8611yield return new object[] { new Size(2, 3), Size.Empty, new Size(2, 3), 0 }; 8727yield return new object[] { Size.Empty, Size.Empty, 0, 0 }; 8732yield return new object[] { new Size(-1, -2), Size.Empty, 0, 1 }; 8788yield return new object[] { Size.Empty, new Size(1, 2), 0, 1 }; 8852yield return new object[] { Size.Empty, Size.Empty, 0 }; 8857yield return new object[] { new Size(-1, -2), Size.Empty, 0 }; 8909yield return new object[] { Size.Empty, new Size(1, 2), 0 }; 8969yield return new object[] { new Size(2, 3), Size.Empty, new Size(2, 3), 0 }; 9035yield return new object[] { Size.Empty, Size.Empty, 0, 0 }; 9040yield return new object[] { new Size(-1, -2), Size.Empty, 0, 1 }; 9123yield return new object[] { Size.Empty, new Size(1, 2), 0, 1 }; 9230Assert.Equal(Size.Empty, control.MinimumSize); 9254Assert.Equal(Size.Empty, control.MinimumSize); 11151yield return new object[] { Size.Empty, Size.Empty, new Size(30, 40), 30, 40, 1 }; 11152yield return new object[] { new Size(10, 20), Size.Empty, new Size(30, 40), 30, 40, 1 }; 11153yield return new object[] { new Size(30, 40), Size.Empty, new Size(30, 40), 30, 40, 0 }; 11154yield return new object[] { new Size(31, 40), Size.Empty, new Size(30, 40), 31, 40, 0 }; 11155yield return new object[] { new Size(30, 41), Size.Empty, new Size(30, 40), 30, 41, 0 }; 11156yield return new object[] { new Size(40, 50), Size.Empty, new Size(30, 40), 40, 50, 0 }; 11157yield return new object[] { Size.Empty, new Size(20, 10), new Size(30, 40), 20, 10, 1 }; 11158yield return new object[] { Size.Empty, new Size(30, 40), new Size(30, 40), 30, 40, 1 }; 11159yield return new object[] { Size.Empty, new Size(31, 40), new Size(30, 40), 30, 40, 1 }; 11160yield return new object[] { Size.Empty, new Size(30, 41), new Size(30, 40), 30, 40, 1 }; 11161yield return new object[] { Size.Empty, new Size(40, 50), new Size(30, 40), 30, 40, 1 }; 11770Assert.Equal(Size.Empty, control.Size); 11794Assert.Equal(Size.Empty, control.Size); 13186yield return new object[] { Size.Empty, Size.Empty, 30, 30, 0, 1 }; 13187yield return new object[] { new Size(10, 20), Size.Empty, 30, 30, 20, 1 }; 13188yield return new object[] { new Size(30, 40), Size.Empty, 30, 30, 40, 0 }; 13189yield return new object[] { new Size(31, 40), Size.Empty, 30, 31, 40, 0 }; 13190yield return new object[] { new Size(30, 41), Size.Empty, 30, 30, 41, 0 }; 13191yield return new object[] { new Size(40, 50), Size.Empty, 30, 40, 50, 0 }; 13192yield return new object[] { Size.Empty, new Size(20, 10), 30, 20, 0, 1 }; 13193yield return new object[] { Size.Empty, new Size(30, 40), 30, 30, 0, 1 }; 13194yield return new object[] { Size.Empty, new Size(31, 40), 30, 30, 0, 1 }; 13195yield return new object[] { Size.Empty, new Size(30, 41), 30, 30, 0, 1 }; 13196yield return new object[] { Size.Empty, new Size(40, 50), 30, 30, 0, 1 };
System\Windows\Forms\DataGridViewCellTests.cs (5)
4830Assert.Equal(new Size(-1, -1), cell.GetPreferredSize(null, null, -1, Size.Empty)); 5328Assert.Equal(Size.Empty, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default)); 5342Assert.NotEqual(Size.Empty, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, flags)); 5384Assert.Equal(Size.Empty, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, TextFormatFlags.Default)); 5398Assert.NotEqual(Size.Empty, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, flags));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
59Assert.Equal(Size.Empty, control.DefaultMaximumSize); 60Assert.Equal(Size.Empty, control.DefaultMinimumSize); 90Assert.Equal(Size.Empty, control.MaximumSize); 92Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\DateTimePickerTests.cs (4)
63Assert.Equal(Size.Empty, control.DefaultMaximumSize); 64Assert.Equal(Size.Empty, control.DefaultMinimumSize); 92Assert.Equal(Size.Empty, control.MaximumSize); 94Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (6)
37Assert.Equal(Size.Empty, control.AutoScrollMargin); 38Assert.Equal(Size.Empty, control.AutoScrollMinSize); 71Assert.Equal(Size.Empty, control.DefaultMaximumSize); 72Assert.Equal(Size.Empty, control.DefaultMinimumSize); 121Assert.Equal(Size.Empty, control.MaximumSize); 123Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (7)
25Assert.Equal(Size.Empty, control.AutoScrollMargin); 26Assert.Equal(Size.Empty, control.AutoScrollMinSize); 57Assert.Equal(Size.Empty, control.DefaultMaximumSize); 58Assert.Equal(Size.Empty, control.DefaultMinimumSize); 97Assert.Equal(Size.Empty, control.MaximumSize); 98Assert.Equal(Size.Empty, control.MinimumSize); 102Assert.Equal(Size.Empty, control.PreferredSize);
System\Windows\Forms\DomainUpDownTests.cs (6)
38_sub.AutoScrollMargin.Should().Be(Size.Empty); 40_sub.AutoScrollMinSize.Should().Be(Size.Empty); 81_sub.DefaultMaximumSize.Should().Be(Size.Empty); 82_sub.DefaultMinimumSize.Should().Be(Size.Empty); 119_sub.MaximumSize.Should().Be(Size.Empty); 120_sub.MinimumSize.Should().Be(Size.Empty);
System\Windows\Forms\FlowLayoutPanelTests.cs (7)
24Assert.Equal(Size.Empty, control.AutoScrollMargin); 25Assert.Equal(Size.Empty, control.AutoScrollMinSize); 54Assert.Equal(Size.Empty, control.DefaultMaximumSize); 55Assert.Equal(Size.Empty, control.DefaultMinimumSize); 90Assert.Equal(Size.Empty, control.MaximumSize); 91Assert.Equal(Size.Empty, control.MinimumSize); 94Assert.Equal(Size.Empty, control.PreferredSize);
System\Windows\Forms\FormTests.cs (6)
35Assert.Equal(Size.Empty, control.AutoScrollMargin); 36Assert.Equal(Size.Empty, control.AutoScrollMinSize); 70Assert.Equal(Size.Empty, control.DefaultMaximumSize); 71Assert.Equal(Size.Empty, control.DefaultMinimumSize); 123Assert.Equal(Size.Empty, control.MaximumSize); 125Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\GroupBoxTests.cs (4)
51Assert.Equal(Size.Empty, control.DefaultMaximumSize); 52Assert.Equal(Size.Empty, control.DefaultMinimumSize); 78Assert.Equal(Size.Empty, control.MaximumSize); 79Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\HScrollBarTests.cs (4)
55Assert.Equal(Size.Empty, control.DefaultMaximumSize); 56Assert.Equal(Size.Empty, control.DefaultMinimumSize); 87Assert.Equal(Size.Empty, control.MaximumSize); 89Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ImageListTests.cs (1)
402Assert.Throws<ArgumentException>("value", () => list.ImageSize = Size.Empty);
System\Windows\Forms\LabelTests.cs (4)
51Assert.Equal(Size.Empty, control.DefaultMaximumSize); 52Assert.Equal(Size.Empty, control.DefaultMinimumSize); 83Assert.Equal(Size.Empty, control.MaximumSize); 84Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\Layout\FlowLayoutTests.cs (8)
57Size = Size.Empty 62Size = Size.Empty 118Size = Size.Empty 123Size = Size.Empty 179Size = Size.Empty 184Size = Size.Empty 240Size = Size.Empty 245Size = Size.Empty
System\Windows\Forms\ListBoxTests.cs (5)
57Assert.Equal(Size.Empty, control.DefaultMaximumSize); 58Assert.Equal(Size.Empty, control.DefaultMinimumSize); 94Assert.Equal(Size.Empty, control.MaximumSize); 95Assert.Equal(Size.Empty, control.MinimumSize); 4790yield return new object[] { borderStyle, Size.Empty };
System\Windows\Forms\ListControlTests.cs (8)
40Assert.Equal(Size.Empty, control.ClientSize); 54Assert.Equal(Size.Empty, control.DefaultMaximumSize); 55Assert.Equal(Size.Empty, control.DefaultMinimumSize); 57Assert.Equal(Size.Empty, control.DefaultSize); 84Assert.Equal(Size.Empty, control.MaximumSize); 85Assert.Equal(Size.Empty, control.MinimumSize); 89Assert.Equal(Size.Empty, control.PreferredSize); 100Assert.Equal(Size.Empty, control.Size);
System\Windows\Forms\ListViewTests.cs (5)
66Assert.Equal(Size.Empty, control.DefaultMaximumSize); 67Assert.Equal(Size.Empty, control.DefaultMinimumSize); 110Assert.Equal(Size.Empty, control.MaximumSize); 111Assert.Equal(Size.Empty, control.MinimumSize); 141Assert.Equal(Size.Empty, control.TileSize);
System\Windows\Forms\MdiClientTests.cs (15)
36Assert.Equal(Size.Empty, control.ClientSize); 62Assert.Equal(Size.Empty, control.MaximumSize); 65Assert.Equal(Size.Empty, control.MinimumSize); 68Assert.Equal(Size.Empty, control.PreferredSize); 77Assert.Equal(Size.Empty, control.Size); 773Assert.Equal(Size.Empty, control.ClientSize); 776Assert.Equal(Size.Empty, control.Size); 800Assert.Equal(Size.Empty, control.ClientSize); 803Assert.Equal(Size.Empty, control.Size); 925Assert.Equal(Size.Empty, control.ClientSize); 928Assert.Equal(Size.Empty, control.Size); 952Assert.Equal(Size.Empty, control.ClientSize); 955Assert.Equal(Size.Empty, control.Size); 1165Assert.Equal(Size.Empty, control.Size); 1189Assert.Equal(Size.Empty, control.Size);
System\Windows\Forms\MdiControlStripTests.cs (6)
28Assert.Equal(Size.Empty, mdiControlStrip.AutoScrollMargin); 29Assert.Equal(Size.Empty, mdiControlStrip.AutoScrollMinSize); 60Assert.Equal(Size.Empty, mdiControlStrip.DefaultMaximumSize); 61Assert.Equal(Size.Empty, mdiControlStrip.DefaultMinimumSize); 110Assert.Equal(Size.Empty, mdiControlStrip.MaximumSize); 113Assert.Equal(Size.Empty, mdiControlStrip.MinimumSize);
System\Windows\Forms\MenuStripTests.cs (6)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 27Assert.Equal(Size.Empty, control.AutoScrollMinSize); 58Assert.Equal(Size.Empty, control.DefaultMaximumSize); 59Assert.Equal(Size.Empty, control.DefaultMinimumSize); 108Assert.Equal(Size.Empty, control.MaximumSize); 111Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\MonthCalendarTests.cs (5)
64Assert.Equal(Size.Empty, control.DefaultMaximumSize); 65Assert.Equal(Size.Empty, control.DefaultMinimumSize); 96Assert.Equal(Size.Empty, control.MaximumSize); 99Assert.Equal(Size.Empty, control.MinimumSize); 2444yield return new object[] { new RECT(0, 0, 0, 0), Size.Empty };
System\Windows\Forms\PaddingTests.cs (2)
23Assert.Equal(Size.Empty, padding.Size); 74Assert.Equal(Size.Empty, padding.Size);
System\Windows\Forms\PanelTests.cs (7)
25Assert.Equal(Size.Empty, control.AutoScrollMargin); 26Assert.Equal(Size.Empty, control.AutoScrollMinSize); 55Assert.Equal(Size.Empty, control.DefaultMaximumSize); 56Assert.Equal(Size.Empty, control.DefaultMinimumSize); 90Assert.Equal(Size.Empty, control.MaximumSize); 91Assert.Equal(Size.Empty, control.MinimumSize); 94Assert.Equal(Size.Empty, control.PreferredSize);
System\Windows\Forms\PictureBoxTests.cs (4)
54Assert.Equal(Size.Empty, control.DefaultMaximumSize); 55Assert.Equal(Size.Empty, control.DefaultMinimumSize); 85Assert.Equal(Size.Empty, control.MaximumSize); 86Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\PopupEventArgsTests.cs (2)
12yield return new object[] { null, null, false, Size.Empty }; 31yield return new object[] { Size.Empty };
System\Windows\Forms\ProgressBarTests.cs (4)
50Assert.Equal(Size.Empty, control.DefaultMaximumSize); 51Assert.Equal(Size.Empty, control.DefaultMinimumSize); 76Assert.Equal(Size.Empty, control.MaximumSize); 78Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
65SizeProperty = Size.Empty
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
16SelectedObject = Size.Empty
System\Windows\Forms\PropertyGridTests.cs (7)
34Assert.Equal(Size.Empty, control.AutoScrollMargin); 36Assert.Equal(Size.Empty, control.AutoScrollMinSize); 81Assert.Equal(Size.Empty, control.DefaultMaximumSize); 82Assert.Equal(Size.Empty, control.DefaultMinimumSize); 125Assert.Equal(Size.Empty, control.MaximumSize); 126Assert.Equal(Size.Empty, control.MinimumSize); 129Assert.NotEqual(Size.Empty, control.PreferredSize);
System\Windows\Forms\RadioButtonTests.cs (4)
56Assert.Equal(Size.Empty, control.DefaultMaximumSize); 57Assert.Equal(Size.Empty, control.DefaultMinimumSize); 91Assert.Equal(Size.Empty, control.MaximumSize); 92Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\RichTextBoxTests.cs (4)
65Assert.Equal(Size.Empty, control.DefaultMaximumSize); 66Assert.Equal(Size.Empty, control.DefaultMinimumSize); 97Assert.Equal(Size.Empty, control.MaximumSize); 99Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ScrollableControlTests.cs (14)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 27Assert.Equal(Size.Empty, control.AutoScrollMinSize); 43Assert.Equal(Size.Empty, control.ClientSize); 54Assert.Equal(Size.Empty, control.DefaultMaximumSize); 55Assert.Equal(Size.Empty, control.DefaultMinimumSize); 57Assert.Equal(Size.Empty, control.DefaultSize); 89Assert.Equal(Size.Empty, control.MaximumSize); 90Assert.Equal(Size.Empty, control.MinimumSize); 93Assert.Equal(Size.Empty, control.PreferredSize); 103Assert.Equal(Size.Empty, control.Size); 433Assert.Equal(Size.Empty, control.AutoScrollMargin); 457Assert.Equal(Size.Empty, control.AutoScrollMargin); 674Assert.Equal(Size.Empty, control.AutoScrollMinSize); 698Assert.Equal(Size.Empty, control.AutoScrollMinSize);
System\Windows\Forms\ScrollBarTests.cs (8)
38Assert.Equal(Size.Empty, control.ClientSize); 49Assert.Equal(Size.Empty, control.DefaultMaximumSize); 50Assert.Equal(Size.Empty, control.DefaultMinimumSize); 52Assert.Equal(Size.Empty, control.DefaultSize); 77Assert.Equal(Size.Empty, control.MaximumSize); 79Assert.Equal(Size.Empty, control.MinimumSize); 82Assert.Equal(Size.Empty, control.PreferredSize); 93Assert.Equal(Size.Empty, control.Size);
System\Windows\Forms\SplitterPanelTests.cs (9)
31Assert.Equal(Size.Empty, control.AutoScrollMargin); 32Assert.Equal(Size.Empty, control.AutoScrollMinSize); 80Assert.Equal(Size.Empty, control.MaximumSize); 81Assert.Equal(Size.Empty, control.MinimumSize); 84Assert.Equal(Size.Empty, control.PreferredSize); 643Size = Size.Empty 650Assert.Equal(Size.Empty, control.Size); 657Assert.Equal(Size.Empty, control.Size); 668Size = Size.Empty
System\Windows\Forms\SplitterTests.cs (4)
50Assert.Equal(Size.Empty, control.DefaultMaximumSize); 51Assert.Equal(Size.Empty, control.DefaultMinimumSize); 76Assert.Equal(Size.Empty, control.MaximumSize); 77Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\StatusStripTests.cs (6)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 27Assert.Equal(Size.Empty, control.AutoScrollMinSize); 58Assert.Equal(Size.Empty, control.DefaultMaximumSize); 59Assert.Equal(Size.Empty, control.DefaultMinimumSize); 108Assert.Equal(Size.Empty, control.MaximumSize); 110Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
149yield return new object[] { TabAppearance.Buttons, Size.Empty, 0 }; 150yield return new object[] { TabAppearance.FlatButtons, Size.Empty, 1 }; 151yield return new object[] { TabAppearance.Normal, Size.Empty, 0 };
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (3)
137yield return new object[] { TabAppearance.Buttons, Size.Empty, 0 }; 138yield return new object[] { TabAppearance.FlatButtons, Size.Empty, 1 }; 139yield return new object[] { TabAppearance.Normal, Size.Empty, 0 };
System\Windows\Forms\TabControlTests.cs (8)
52Assert.Equal(Size.Empty, control.DefaultMaximumSize); 53Assert.Equal(Size.Empty, control.DefaultMinimumSize); 75Assert.Equal(Size.Empty, control.ItemSize); 81Assert.Equal(Size.Empty, control.MaximumSize); 82Assert.Equal(Size.Empty, control.MinimumSize); 1543control.ItemSize = Size.Empty; 1574Assert.Equal(Size.Empty, control.ItemSize); 1598Assert.Equal(Size.Empty, control.ItemSize);
System\Windows\Forms\TableLayoutPanelTests.cs (7)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 27Assert.Equal(Size.Empty, control.AutoScrollMinSize); 60Assert.Equal(Size.Empty, control.DefaultMaximumSize); 61Assert.Equal(Size.Empty, control.DefaultMinimumSize); 98Assert.Equal(Size.Empty, control.MaximumSize); 99Assert.Equal(Size.Empty, control.MinimumSize); 102Assert.Equal(Size.Empty, control.PreferredSize);
System\Windows\Forms\TabPageTests.cs (18)
29Assert.Equal(Size.Empty, control.AutoScrollMargin); 30Assert.Equal(Size.Empty, control.AutoScrollMinSize); 60Assert.Equal(Size.Empty, control.DefaultMaximumSize); 61Assert.Equal(Size.Empty, control.DefaultMinimumSize); 95Assert.Equal(Size.Empty, control.MaximumSize); 96Assert.Equal(Size.Empty, control.MinimumSize); 99Assert.Equal(Size.Empty, control.PreferredSize); 138Assert.Equal(Size.Empty, control.AutoScrollMargin); 139Assert.Equal(Size.Empty, control.AutoScrollMinSize); 169Assert.Equal(Size.Empty, control.DefaultMaximumSize); 170Assert.Equal(Size.Empty, control.DefaultMinimumSize); 204Assert.Equal(Size.Empty, control.MaximumSize); 205Assert.Equal(Size.Empty, control.MinimumSize); 208Assert.Equal(Size.Empty, control.PreferredSize); 2423Size = Size.Empty 2430Assert.Equal(Size.Empty, control.Size); 2437Assert.Equal(Size.Empty, control.Size); 2448Size = Size.Empty
System\Windows\Forms\TextRendererTests.cs (16)
414yield return new object[] { "string", null, Size.Empty }; 418yield return new object[] { "string", SystemFonts.MenuFont, Size.Empty }; 438yield return new object[] { "string", null, Size.Empty, TextFormatFlags.Default }; 442yield return new object[] { "string", SystemFonts.MenuFont, Size.Empty, TextFormatFlags.Default }; 519Assert.Equal(Size.Empty, TextRenderer.MeasureText(text, SystemFonts.MenuFont)); 520Assert.Equal(Size.Empty, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400))); 521Assert.Equal(Size.Empty, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default)); 522Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont)); 523Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400))); 524Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default)); 525Assert.Equal(Size.Empty, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont)); 526Assert.Equal(Size.Empty, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400))); 527Assert.Equal(Size.Empty, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default)); 528Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont)); 529Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400))); 530Assert.Equal(Size.Empty, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\ToolStripButtonTests.cs (1)
1078yield return new object[] { Size.Empty };
System\Windows\Forms\ToolStripContentPanelTests.cs (11)
27Assert.Equal(Size.Empty, control.AutoScrollMargin); 28Assert.Equal(Size.Empty, control.AutoScrollMinSize); 57Assert.Equal(Size.Empty, control.DefaultMaximumSize); 58Assert.Equal(Size.Empty, control.DefaultMinimumSize); 92Assert.Equal(Size.Empty, control.MaximumSize); 93Assert.Equal(Size.Empty, control.MinimumSize); 96Assert.Equal(Size.Empty, control.PreferredSize); 1042Size = Size.Empty 1049Assert.Equal(Size.Empty, control.Size); 1056Assert.Equal(Size.Empty, control.Size); 1067Size = Size.Empty
System\Windows\Forms\ToolStripControlHostTests.cs (2)
2710yield return new object[] { Size.Empty }; 4115Assert.Equal(Size.Empty, c.Size);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
30Assert.Equal(Size.Empty, control.AutoScrollMargin); 31Assert.Equal(Size.Empty, control.AutoScrollMinSize); 62Assert.Equal(Size.Empty, control.DefaultMaximumSize); 63Assert.Equal(Size.Empty, control.DefaultMinimumSize); 115Assert.Equal(Size.Empty, control.MaximumSize); 117Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\ToolStripItemTests.cs (1)
10298yield return new object[] { Size.Empty };
System\Windows\Forms\ToolStripPanelTests.cs (12)
26Assert.Equal(Size.Empty, control.AutoScrollMargin); 28Assert.Equal(Size.Empty, control.AutoScrollMinSize); 45Assert.Equal(Size.Empty, control.ClientSize); 57Assert.Equal(Size.Empty, control.DefaultMaximumSize); 58Assert.Equal(Size.Empty, control.DefaultMinimumSize); 60Assert.Equal(Size.Empty, control.DefaultSize); 92Assert.Equal(Size.Empty, control.MaximumSize); 93Assert.Equal(Size.Empty, control.MinimumSize); 96Assert.Equal(Size.Empty, control.PreferredSize); 107Assert.Equal(Size.Empty, control.Size); 211Assert.Equal(value != Size.Empty, panel.AutoScroll); 216Assert.Equal(value != Size.Empty, panel.AutoScroll);
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
745yield return new object[] { Size.Empty }; 765yield return new object[] { ToolStripLayoutStyle.Flow, Size.Empty, new Size(6, 23) }; 771yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.Empty, new Size(6, 23) }; 777yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.Empty, new Size(6, 23) }; 783yield return new object[] { ToolStripLayoutStyle.Table, Size.Empty, new Size(6, 23) }; 789yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.Empty, new Size(23, 6) }; 818yield return new object[] { layoutStyle, Size.Empty }; 864yield return new object[] { ToolStripLayoutStyle.Flow, Size.Empty, new Size(91, 6) }; 870yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.Empty, new Size(91, 6) }; 876yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.Empty, new Size(52, 6) }; 882yield return new object[] { ToolStripLayoutStyle.Table, Size.Empty, new Size(91, 6) }; 888yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.Empty, new Size(52, 6) };
System\Windows\Forms\ToolStripTests.cs (12)
30Assert.Equal(Size.Empty, control.AutoScrollMargin); 31Assert.Equal(Size.Empty, control.AutoScrollMinSize); 62Assert.Equal(Size.Empty, control.DefaultMaximumSize); 63Assert.Equal(Size.Empty, control.DefaultMinimumSize); 126Assert.Equal(Size.Empty, control.MaximumSize); 127Assert.Equal(Size.Empty, control.MinimumSize); 188Assert.Equal(Size.Empty, control.AutoScrollMargin); 189Assert.Equal(Size.Empty, control.AutoScrollMinSize); 219Assert.Equal(Size.Empty, control.DefaultMaximumSize); 220Assert.Equal(Size.Empty, control.DefaultMinimumSize); 281Assert.Equal(Size.Empty, control.MaximumSize); 282Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\TrackBarRendererTests.cs (1)
94size.Should().NotBe(Size.Empty);
System\Windows\Forms\TreeViewTests.cs (4)
52Assert.Equal(Size.Empty, control.DefaultMaximumSize); 53Assert.Equal(Size.Empty, control.DefaultMinimumSize); 89Assert.Equal(Size.Empty, control.MaximumSize); 90Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\UpDownBaseTests.cs (21)
24Assert.Equal(Size.Empty, control.AutoScrollMargin); 26Assert.Equal(Size.Empty, control.AutoScrollMinSize); 68Assert.Equal(Size.Empty, control.DefaultMaximumSize); 69Assert.Equal(Size.Empty, control.DefaultMinimumSize); 104Assert.Equal(Size.Empty, control.MaximumSize); 105Assert.Equal(Size.Empty, control.MinimumSize); 1084yield return new object[] { Size.Empty, 120, 0 }; 1128yield return new object[] { Size.Empty, 120, 0 }; 1579yield return new object[] { Size.Empty }; 1626yield return new object[] { Size.Empty, Size.Empty, new Size(30, 40), expectedWidth }; 1627yield return new object[] { new Size(10, 20), Size.Empty, new Size(30, 40), expectedWidth }; 1628yield return new object[] { new Size(30, 40), Size.Empty, new Size(30, 40), expectedWidth }; 1629yield return new object[] { new Size(31, 40), Size.Empty, new Size(30, 40), expectedWidth }; 1630yield return new object[] { new Size(30, 41), Size.Empty, new Size(30, 40), expectedWidth }; 1631yield return new object[] { new Size(40, 50), Size.Empty, new Size(30, 40), expectedWidth }; 1633yield return new object[] { Size.Empty, new Size(20, 10), new Size(30, 40), 20 }; 1634yield return new object[] { Size.Empty, new Size(30, 40), new Size(30, 40), 30 }; 1635yield return new object[] { Size.Empty, new Size(31, 40), new Size(30, 40), 31 }; 1636yield return new object[] { Size.Empty, new Size(30, 41), new Size(30, 40), 30 }; 1637yield return new object[] { Size.Empty, new Size(40, 50), new Size(30, 40), 40 };
System\Windows\Forms\UserControlTests.cs (7)
30Assert.Equal(Size.Empty, control.AutoScrollMargin); 32Assert.Equal(Size.Empty, control.AutoScrollMinSize); 61Assert.Equal(Size.Empty, control.DefaultMaximumSize); 62Assert.Equal(Size.Empty, control.DefaultMinimumSize); 96Assert.Equal(Size.Empty, control.MaximumSize); 97Assert.Equal(Size.Empty, control.MinimumSize); 100Assert.Equal(Size.Empty, control.PreferredSize);
System\Windows\Forms\VScrollBarTests.cs (4)
54Assert.Equal(Size.Empty, control.DefaultMaximumSize); 55Assert.Equal(Size.Empty, control.DefaultMinimumSize); 86Assert.Equal(Size.Empty, control.MaximumSize); 88Assert.Equal(Size.Empty, control.MinimumSize);
System\Windows\Forms\WebBrowserTests.cs (18)
49Assert.Equal(Size.Empty, control.DefaultMaximumSize); 50Assert.Equal(Size.Empty, control.DefaultMinimumSize); 73Assert.Equal(Size.Empty, control.MaximumSize); 74Assert.Equal(Size.Empty, control.MinimumSize); 4493yield return new object[] { Size.Empty, (IntPtr)(-1) }; 4494yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0) }; 4495yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2) }; 4496yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2) }; 4532yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero, false }; 4533yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 4534yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 4535yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true }; 4536yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, false }; 4606yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero }; 4607yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 4608yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 4609yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero }; 4610yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
TextBoxBaseTests.cs (21)
4996yield return new object[] { multiline, wordWrap, BorderStyle.Fixed3D, Size.Empty, new Size(4, s_preferredHeight) }; 5002yield return new object[] { multiline, wordWrap, BorderStyle.FixedSingle, Size.Empty, new Size(4, s_preferredHeight) }; 5008yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.Empty, new Size(0, Control.DefaultFont.Height) }; 5057yield return new object[] { BorderStyle.Fixed3D, Size.Empty, 4, s_preferredHeight }; 5063yield return new object[] { BorderStyle.FixedSingle, Size.Empty, 4, s_preferredHeight }; 5069yield return new object[] { BorderStyle.None, Size.Empty, 0, Control.DefaultFont.Height }; 5128int width = TextRenderer.MeasureText(control.Text, control.Font, Size.Empty, TextFormatFlags.SingleLine).Width; 6940yield return new object[] { Size.Empty, shortcutsEnabled, (IntPtr)(-1), expectedResult }; 6941yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult }; 6942yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult }; 6943yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult }; 6985yield return new object[] { Size.Empty, shortcutsEnabled, (IntPtr)(-1), expectedResult, false, false }; 6986yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false, true }; 6987yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false, true }; 6988yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false, true }; 6989yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false, true }; 7066yield return new object[] { Size.Empty, shortcutsEnabled, (IntPtr)(-1), expectedResult, false }; 7067yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false }; 7068yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false }; 7069yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false }; 7070yield return new object[] { Size.Empty, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false };
TextBoxTests.cs (4)
58Assert.Equal(Size.Empty, control.DefaultMaximumSize); 59Assert.Equal(Size.Empty, control.DefaultMinimumSize); 84Assert.Equal(Size.Empty, control.MaximumSize); 86Assert.Equal(Size.Empty, control.MinimumSize);
TrackBarTests.cs (4)
51Assert.Equal(Size.Empty, control.DefaultMaximumSize); 52Assert.Equal(Size.Empty, control.DefaultMinimumSize); 79Assert.Equal(Size.Empty, control.MaximumSize); 81Assert.Equal(Size.Empty, control.MinimumSize);
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (3)
197if (offset != Size.Empty || image.Size != frames[0].image.Size) 254resultFrames.Add((frames[0].elapsed, frames[0].image, offset: Size.Empty)); 319resultFrames.Add((frames[i].elapsed, frames[i].image, Size.Empty));
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
819this.Size = SD.Size.Empty;