851 references to Empty
System.Drawing.Common (5)
System\Drawing\BufferedGraphicsContext.cs (3)
16
private Size _bufferSize = Size.
Empty
;
479
_bufferSize = Size.
Empty
;
480
_virtualSize = Size.
Empty
;
System\Drawing\Icon.cs (1)
32
private Size _iconSize = Size.
Empty
;
System\Drawing\Printing\PreviewPageInfo.cs (1)
14
private Size _physicalSize = Size.
Empty
;
System.Drawing.Common.Tests (10)
System\Drawing\GraphicsTests.cs (9)
1649
Assert.ThrowsAny<ArgumentException>(() => graphics.CopyFromScreen(1, 2, 3, 4, Size.
Empty
, copyPixelOperation));
1661
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
));
1662
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
, CopyPixelOperation.DestinationInvert));
1663
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
));
1664
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
, CopyPixelOperation.DestinationInvert));
1679
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
));
1680
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
, CopyPixelOperation.MergeCopy));
1681
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
));
1682
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
, CopyPixelOperation.MergeCopy));
System\Drawing\ToolboxBitmapAttributeTests.cs (1)
38
if (size == Size.
Empty
)
System.Windows.Forms (122)
System\Windows\Forms\Control.cs (9)
1681
protected virtual Size DefaultSize => Size.
Empty
;
2560
if (value == Size.
Empty
)
3829
get { return GetPreferredSize(Size.
Empty
); }
5280
if (MaximumSize != Size.
Empty
|| MinimumSize != Size.
Empty
)
9806
MinimumSize = Size.
Empty
;
9807
MaximumSize = Size.
Empty
;
9854
LayoutUtils.UnionSizes(Size.
Empty
, minSize), // make sure we don't go below 0.
9863
LayoutUtils.UnionSizes(Size.
Empty
, maxSize), // make sure we don't go below 0.
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
592
ImageSize = Size.
Empty
,
619
ImageSize = (Control.Image is null) ? Size.
Empty
: Control.Image.Size,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (8)
201
Size checkSize = checkSizeLinear > 0 ? new(checkSizeLinear + 1, checkSizeLinear) : Size.
Empty
;
205
Size requiredImageSize = (ImageSize != Size.
Empty
) ? ImageSize + textImageInsetSize : Size.
Empty
;
211
Size textSize = Size.
Empty
;
286
layout.Focus = ImageSize != Size.
Empty
490
if (ImageSize == Size.
Empty
|| Text is null || Text.Length == 0 || textImageRelation == TextImageRelation.Overlay)
497
if (layout.Options.DotNetOneButtonCompat && ImageSize != Size.
Empty
)
663
Size textSize = Size.
Empty
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
821
Size textExtent = Size.
Empty
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2291
return GetPreferredSize(screen, dataGridViewCellStyle, rowIndex, Size.
Empty
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
568
glyphSize = Size.
Empty
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (4)
431
preferredSize = Size.
Empty
;
443
preferredSize = Size.
Empty
;
466
preferredSize = Size.
Empty
;
478
preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
601
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Controls\Labels\Label.cs (2)
1019
bordersAndPadding += SizeFromClientSize(Size.
Empty
);
1056
proposedConstraints = LayoutUtils.UnionSizes(proposedConstraints, Size.
Empty
);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
139
private Size _tileSize = Size.
Empty
;
1652
return Size.
Empty
;
1703
return !_tileSize.Equals(Size.
Empty
);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1034
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
428
Size scrollBarPadding = Size.
Empty
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
24
private static readonly Size s_defaultItemSize = Size.
Empty
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
394
Size scrollBarPadding = Size.
Empty
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
822
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
449
size = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (2)
15
private Size _cachedHDCSize = Size.
Empty
;
64
_cachedHDCSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
54
private Size _largestDisplayedItemSize = Size.
Empty
;
2262
Size maxSize = Size.
Empty
;
2325
Size maxSize = Size.
Empty
;
2389
return item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
4240
Size biggestItemSize = Size.
Empty
; // used in determining OnPaint caching.
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1049
internal Size GetSuggestedSize() => AutoSize ? GetPreferredSize(Size.
Empty
) : Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (8)
14
private Size _maxItemSize = Size.
Empty
;
275
Size maxTextSize = Size.
Empty
;
276
Size maxImageSize = Size.
Empty
;
278
Size maxArrowSize = Size.
Empty
;
279
Size maxNonMenuItemSize = Size.
Empty
;
307
Size imageSize = Size.
Empty
;
794
Size upSize = UpScrollButton.GetPreferredSize(Size.
Empty
);
800
Size downSize = DownScrollButton.GetPreferredSize(Size.
Empty
);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
77
Size preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
572
content.Size = LayoutUtils.UnionSizes(Size.
Empty
, content.Size);
1558
return Size.
Empty
;
1574
? Owner?.ImageList?.ImageSize ?? Size.
Empty
1575
: (image is null) ? Size.
Empty
: image.Size;
2354
return Size.
Empty
;
2356
else if (_cachedTextSize == Size.
Empty
)
2818
_cachedTextSize = Size.
Empty
;
2997
_cachedTextSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
175
return Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
49
private Size _cachedShortcutSize = Size.
Empty
;
176
_cachedShortcutSize = Size.
Empty
;
723
return Size.
Empty
;
729
return Size.
Empty
;
732
if (_cachedShortcutSize == Size.
Empty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
134
Size biggestItemSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
44
MinimumSize = Size.
Empty
; // consider 1,1
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
341
if (toolStrip.MinimumSize == Size.
Empty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
84
Size totalSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
86
Size totalSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
346
Rectangle bounds = new(Point.Empty, item?.Size ?? Size.
Empty
);
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
125
Size preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
36
return Size.
Empty
;
270
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
412
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
53
private Size _webBrowserBaseChangingSize = Size.
Empty
;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
19
private Size _maxSize = Size.
Empty
;
System\Windows\Forms\Form.cs (5)
149
private Size _autoScaleBaseSize = Size.
Empty
;
150
private Size _minAutoSize = Size.
Empty
;
498
_minAutoSize = Size.
Empty
;
1186
get => Properties.TryGetValue(s_propMaxTrackSize, out Size maximumSize) ? maximumSize : Size.
Empty
;
6032
_autoScaleBaseSize = Size.
Empty
;
System\Windows\Forms\Input\Cursor.cs (1)
22
private static Size s_cursorSize = Size.
Empty
;
System\Windows\Forms\Layout\CommonProperties.cs (5)
348
Debug.Assert(xGetPreferredSizeCache(element) == Size.
Empty
, "Error detected in xClearPreferredSizeCache.");
373
/// value of <see cref="LayoutUtils.s_maxSize"/> (or <see cref="Size.
Empty
"/> too).
382
return Size.
Empty
;
391
value == Size.
Empty
|| value != xGetPreferredSizeCache(element),
681
return Size.
Empty
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
678
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
380
Size preferredSize = Size.
Empty
;
634
Size preferredSizeForDocking = Size.
Empty
;
1112
Size prefSize = Size.
Empty
;
System\Windows\Forms\Layout\FlowLayout.cs (2)
65
Size layoutSize = Size.
Empty
;
167
Size rowSize = Size.
Empty
;
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
69
public virtual Size MinimumSize => CommonProperties.GetMinimumSize(Element!, Size.
Empty
);
System\Windows\Forms\Layout\LayoutEngine.cs (1)
22
return Size.
Empty
;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
45
Size largestSize = Size.
Empty
;
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
385
return Size.
Empty
;
System\Windows\Forms\Layout\TableLayout.cs (2)
619
Size preferredSize = Size.
Empty
;
732
maxWidth = GetElementSize(element, Size.
Empty
).Width;
System\Windows\Forms\Panels\Panel.cs (1)
151
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
223
get => Collapsed ? Size.
Empty
: base.Size;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
47
private Size _imageSize = Size.
Empty
;
556
SetVirtualSizeNoInvalidate(Size.
Empty
);
System\Windows\Forms\Rendering\TextExtensions.cs (2)
221
return Size.
Empty
;
286
return Size.
Empty
;
System\Windows\Forms\Rendering\TextRenderer.cs (2)
518
return Size.
Empty
;
536
return Size.
Empty
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
22
private Size _userAutoScrollMinSize = Size.
Empty
;
32
private Size _scrollMargin = Size.
Empty
;
37
private Size _requestedScrollMargin = Size.
Empty
;
927
private void ResetAutoScrollMargin() => AutoScrollMargin = Size.
Empty
;
929
private void ResetAutoScrollMinSize() => AutoScrollMinSize = Size.
Empty
;
1123
private bool ShouldSerializeAutoScrollMargin() => !AutoScrollMargin.Equals(Size.
Empty
);
1129
private 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)
1538
bubbleSize = Size.
Empty
;
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
363
return Size.
Empty
;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
57
Size subtitleSize = Size.
Empty
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (6)
21
private Size _watermarkSize = Size.
Empty
;
128
_minimumSize = Size.
Empty
;
129
_watermarkSize = Size.
Empty
;
231
private Size _minimumSize = Size.
Empty
;
237
if (_minimumSize == Size.
Empty
)
356
if (_watermarkSize == Size.
Empty
)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
110
_parentGridSize = Size.
Empty
;
868
_parentGridSize = Size.
Empty
;
System\Windows\Forms\Design\CommandSet.cs (11)
587
return prop is not null ? (Size)prop.GetValue(comp)! : Size.
Empty
;
617
snapSize = gridSizeProp is not null ? (Size)gridSizeProp.GetValue(snapComponent)! : Size.
Empty
;
1111
Size gridSize = Size.
Empty
;
2290
Size primarySize = Size.
Empty
;
2389
Size grid = Size.
Empty
;
2523
Size grid = Size.
Empty
;
2551
Size curSize = Size.
Empty
, lastSize = Size.
Empty
;
2592
curSize = Size.
Empty
;
2616
curSize = Size.
Empty
;
3284
Size gridSize = Size.
Empty
;
System\Windows\Forms\Design\ComponentTray.cs (2)
30
private Size _grabHandle = Size.
Empty
; // Size of the grab handles.
2782
private Size _snapSize = Size.
Empty
;
System\Windows\Forms\Design\ControlCommandSet.cs (2)
432
snapSize = Size.
Empty
;
680
Size snapSize = Size.
Empty
;
System\Windows\Forms\Design\DesignerUtils.cs (2)
20
private static Size s_minDragSize = Size.
Empty
;
142
if (s_minDragSize == Size.
Empty
)
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
21
private Size _autoScaleBaseSize = Size.
Empty
;
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
50
private Size _gridSize = Size.
Empty
;
435
Size size = Size.
Empty
;
952
if (size != Size.
Empty
)
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ByteViewerTests.cs (6)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
100
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ControlCommandSetTests.cs (1)
131
snapSize.Should().Be(Size.
Empty
);
System\Windows\Forms\Design\DesignerUtilsTests.cs (1)
73
minDragSize.Should().NotBe(Size.
Empty
);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
319
GetIconResourceAsBestMatchBitmap(type, resource, Size.
Empty
);
System.Windows.Forms.Tests (670)
System\Windows\Forms\AxHostTests.cs (8)
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
158
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
159
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
186
Assert.Equal(Size.
Empty
, control.MaximumSize);
187
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ButtonBaseTests.cs (5)
55
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
90
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
4999
yield return new object[] { flatStyle, Size.
Empty
};
System\Windows\Forms\ButtonTests.cs (30)
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
93
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
598
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
603
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
699
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
704
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
954
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
959
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
1169
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(14, 9) };
1182
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1218
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1231
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1268
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1281
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(18, 15) };
1319
yield return new object[] { Size.
Empty
};
1378
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(8, 8) };
1391
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1404
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1419
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1456
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1469
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1482
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1497
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1535
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1548
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(12, 14) };
1563
yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1576
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(10, 12) };
1615
yield return new object[] { Size.
Empty
};
System\Windows\Forms\CheckBoxTests.cs (4)
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ComboBoxTests.cs (4)
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
104
Assert.Equal(Size.
Empty
, control.MaximumSize);
105
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ContainerControlTests.cs (10)
31
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
51
Assert.Equal(Size.
Empty
, control.ClientSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
66
Assert.Equal(Size.
Empty
, control.DefaultSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
102
Assert.Equal(Size.
Empty
, control.PreferredSize);
112
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ControlTests.cs (34)
39
Assert.Equal(Size.
Empty
, control.ClientSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultSize);
77
Assert.Equal(Size.
Empty
, control.MaximumSize);
78
Assert.Equal(Size.
Empty
, control.MinimumSize);
81
Assert.Equal(Size.
Empty
, control.PreferredSize);
91
Assert.Equal(Size.
Empty
, control.Size);
128
Assert.Equal(Size.
Empty
, control.ClientSize);
140
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
141
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
143
Assert.Equal(Size.
Empty
, control.DefaultSize);
166
Assert.Equal(Size.
Empty
, control.MaximumSize);
167
Assert.Equal(Size.
Empty
, control.MinimumSize);
170
Assert.Equal(Size.
Empty
, control.PreferredSize);
180
Assert.Equal(Size.
Empty
, control.Size);
236
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
237
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
239
Assert.Equal(Size.
Empty
, control.DefaultSize);
262
Assert.Equal(Size.
Empty
, control.MaximumSize);
263
Assert.Equal(Size.
Empty
, control.MinimumSize);
321
Assert.Equal(Size.
Empty
, control.ClientSize);
332
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
333
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
335
Assert.Equal(Size.
Empty
, control.DefaultSize);
358
Assert.Equal(Size.
Empty
, control.MaximumSize);
359
Assert.Equal(Size.
Empty
, control.MinimumSize);
362
Assert.Equal(Size.
Empty
, control.PreferredSize);
372
Assert.Equal(Size.
Empty
, control.Size);
428
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
429
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
431
Assert.Equal(Size.
Empty
, control.DefaultSize);
454
Assert.Equal(Size.
Empty
, control.MaximumSize);
455
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ControlTests.Methods.cs (100)
2331
yield return new object[] { Size.
Empty
};
2343
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2347
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2369
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), Size.
Empty
};
2370
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), new Size(10, 20) };
2371
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), new Size(30, 40) };
2372
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), new Size(31, 40) };
2373
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), new Size(30, 41) };
2374
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), new Size(40, 50) };
2375
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), Size.
Empty
};
2376
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), Size.
Empty
};
2377
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), Size.
Empty
};
2378
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), Size.
Empty
};
2379
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), Size.
Empty
};
7437
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7438
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7439
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 30, 40, 0 };
7440
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 31, 40, 0 };
7441
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 30, 41, 0 };
7442
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 40, 50, 0 };
7443
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 20, 10, 1 };
7444
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 30, 40, 1 };
7445
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 30, 40, 1 };
7446
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 30, 40, 1 };
7447
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 30, 40, 1 };
8224
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8225
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8226
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 0 };
8227
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 31, 40, 0 };
8228
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 41, 0 };
8229
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 40, 50, 0 };
8230
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 20, 10, 1 };
8231
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8232
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8233
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8234
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
9044
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9045
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9046
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 0 };
9047
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, specified, 31, 40, 1, 0 };
9048
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, specified, 30, 41, 1, 0 };
9049
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, specified, 40, 50, 1, 0 };
9050
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, specified, 20, 10, 1, 1 };
9051
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9052
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9053
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9054
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
10111
yield return new object[] { Size.
Empty
};
10354
Assert.Equal(Size.
Empty
, control.ClientSize);
10357
Assert.Equal(Size.
Empty
, control.Size);
10373
Assert.Equal(Size.
Empty
, control.ClientSize);
10376
Assert.Equal(Size.
Empty
, control.Size);
10528
Assert.Equal(Size.
Empty
, control.ClientSize);
10531
Assert.Equal(Size.
Empty
, control.Size);
10547
Assert.Equal(Size.
Empty
, control.ClientSize);
10550
Assert.Equal(Size.
Empty
, control.Size);
10620
Assert.Equal(Size.
Empty
, control.ClientSize);
10623
Assert.Equal(Size.
Empty
, control.Size);
10639
Assert.Equal(Size.
Empty
, control.ClientSize);
10642
Assert.Equal(Size.
Empty
, control.Size);
10711
Assert.Equal(Size.
Empty
, control.ClientSize);
10714
Assert.Equal(Size.
Empty
, control.Size);
10733
Assert.Equal(Size.
Empty
, control.ClientSize);
10736
Assert.Equal(Size.
Empty
, control.Size);
11007
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 1 };
11008
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 1 };
11009
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 0 };
11010
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 1 };
11011
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 1 };
11012
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 1 };
11013
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 1 };
11014
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 1 };
11015
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 1 };
11016
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 1 };
11017
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 1 };
12497
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
12498
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
12499
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
12500
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
12536
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
12537
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
12538
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
12539
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
12540
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true };
12610
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
12611
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
12612
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
12613
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
12614
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
System\Windows\Forms\ControlTests.Properties.cs (85)
3288
yield return new object[] { new Control(), Size.
Empty
};
3289
yield return new object[] { new NonZeroWidthBorderedControl(), Size.
Empty
};
3290
yield return new object[] { new NonZeroHeightBorderedControl(), Size.
Empty
};
5771
yield return new object[] { Size.
Empty
, Size.
Empty
, 40, 0, 40, 1 };
5772
yield return new object[] { new Size(10, 20), Size.
Empty
, 40, 10, 40, 1 };
5773
yield return new object[] { new Size(30, 40), Size.
Empty
, 40, 30, 40, 0 };
5774
yield return new object[] { new Size(31, 40), Size.
Empty
, 40, 31, 40, 0 };
5775
yield return new object[] { new Size(30, 41), Size.
Empty
, 40, 30, 41, 0 };
5776
yield return new object[] { new Size(40, 50), Size.
Empty
, 40, 40, 50, 0 };
5777
yield return new object[] { Size.
Empty
, new Size(20, 10), 40, 0, 10, 1 };
5778
yield return new object[] { Size.
Empty
, new Size(30, 40), 40, 0, 40, 1 };
5779
yield return new object[] { Size.
Empty
, new Size(31, 40), 40, 0, 40, 1 };
5780
yield return new object[] { Size.
Empty
, new Size(30, 41), 40, 0, 40, 1 };
5781
yield return new object[] { Size.
Empty
, new Size(40, 50), 40, 0, 40, 1 };
7885
yield return new object[] { new Control(), Size.
Empty
};
7915
yield return new object[] { Size.
Empty
};
7939
Assert.Equal(Size.
Empty
, control.Size);
7946
Assert.Equal(Size.
Empty
, control.Size);
7964
Assert.Equal(Size.
Empty
, control.Size);
7971
Assert.Equal(Size.
Empty
, control.Size);
7978
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8087
yield return new object[] { Size.
Empty
, 0 };
8124
Assert.Equal(Size.
Empty
, control.Size);
8132
Assert.Equal(Size.
Empty
, control.Size);
8142
yield return new object[] { Size.
Empty
, 0 };
8180
Assert.Equal(Size.
Empty
, control.Size);
8189
Assert.Equal(Size.
Empty
, control.Size);
8215
Assert.Equal(Size.
Empty
, control.Size);
8225
Assert.Equal(Size.
Empty
, control.Size);
8253
Assert.Equal(Size.
Empty
, control.Size);
8263
Assert.Equal(Size.
Empty
, control.Size);
8346
Assert.Equal(Size.
Empty
, control.Size);
8361
Assert.Equal(Size.
Empty
, control.Size);
8414
Assert.Equal(Size.
Empty
, control.Size);
8429
Assert.Equal(Size.
Empty
, control.Size);
8464
Assert.Equal(Size.
Empty
, control.MaximumSize);
8488
Assert.Equal(Size.
Empty
, control.MaximumSize);
8494
yield return new object[] { new Control(), Size.
Empty
};
8524
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8529
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8568
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8615
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8731
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
8736
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
8792
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
8856
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8861
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8913
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8973
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
9039
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
9044
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
9127
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
9234
Assert.Equal(Size.
Empty
, control.MinimumSize);
9258
Assert.Equal(Size.
Empty
, control.MinimumSize);
11155
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11156
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11157
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), 30, 40, 0 };
11158
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), 31, 40, 0 };
11159
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), 30, 41, 0 };
11160
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), 40, 50, 0 };
11161
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20, 10, 1 };
11162
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30, 40, 1 };
11163
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 30, 40, 1 };
11164
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30, 40, 1 };
11165
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 30, 40, 1 };
11774
Assert.Equal(Size.
Empty
, control.Size);
11798
Assert.Equal(Size.
Empty
, control.Size);
13190
yield return new object[] { Size.
Empty
, Size.
Empty
, 30, 30, 0, 1 };
13191
yield return new object[] { new Size(10, 20), Size.
Empty
, 30, 30, 20, 1 };
13192
yield return new object[] { new Size(30, 40), Size.
Empty
, 30, 30, 40, 0 };
13193
yield return new object[] { new Size(31, 40), Size.
Empty
, 30, 31, 40, 0 };
13194
yield return new object[] { new Size(30, 41), Size.
Empty
, 30, 30, 41, 0 };
13195
yield return new object[] { new Size(40, 50), Size.
Empty
, 30, 40, 50, 0 };
13196
yield return new object[] { Size.
Empty
, new Size(20, 10), 30, 20, 0, 1 };
13197
yield return new object[] { Size.
Empty
, new Size(30, 40), 30, 30, 0, 1 };
13198
yield return new object[] { Size.
Empty
, new Size(31, 40), 30, 30, 0, 1 };
13199
yield return new object[] { Size.
Empty
, new Size(30, 41), 30, 30, 0, 1 };
13200
yield return new object[] { Size.
Empty
, new Size(40, 50), 30, 30, 0, 1 };
System\Windows\Forms\DataGridViewButtonCellTests.cs (1)
217
g, dataGridView.Rows[0].Cells[0].Style, 0, Size.
Empty
);
System\Windows\Forms\DataGridViewCellTests.cs (5)
4832
Assert.Equal(new Size(-1, -1), cell.GetPreferredSize(null, null, -1, Size.
Empty
));
5330
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default));
5344
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, flags));
5386
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, TextFormatFlags.Default));
5400
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, flags));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
61
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\DateTimePickerTests.cs (4)
65
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
66
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
96
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (6)
39
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
40
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
73
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
74
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
123
Assert.Equal(Size.
Empty
, control.MaximumSize);
125
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (7)
27
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
99
Assert.Equal(Size.
Empty
, control.MaximumSize);
100
Assert.Equal(Size.
Empty
, control.MinimumSize);
104
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\DomainUpDownTests.cs (6)
40
_sub.AutoScrollMargin.Should().Be(Size.
Empty
);
42
_sub.AutoScrollMinSize.Should().Be(Size.
Empty
);
83
_sub.DefaultMaximumSize.Should().Be(Size.
Empty
);
84
_sub.DefaultMinimumSize.Should().Be(Size.
Empty
);
121
_sub.MaximumSize.Should().Be(Size.
Empty
);
122
_sub.MinimumSize.Should().Be(Size.
Empty
);
System\Windows\Forms\FlowLayoutPanelTests.cs (7)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
96
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\FormTests.cs (6)
37
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
38
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
72
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
73
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
125
Assert.Equal(Size.
Empty
, control.MaximumSize);
127
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\GroupBoxTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
80
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\HScrollBarTests.cs (4)
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
89
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ImageListTests.cs (1)
404
Assert.Throws<ArgumentException>("value", () => list.ImageSize = Size.
Empty
);
System\Windows\Forms\LabelTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
85
Assert.Equal(Size.
Empty
, control.MaximumSize);
86
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Layout\FlowLayoutTests.cs (8)
59
Size = Size.
Empty
64
Size = Size.
Empty
120
Size = Size.
Empty
125
Size = Size.
Empty
181
Size = Size.
Empty
186
Size = Size.
Empty
242
Size = Size.
Empty
247
Size = Size.
Empty
System\Windows\Forms\ListBoxTests.cs (5)
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
96
Assert.Equal(Size.
Empty
, control.MaximumSize);
97
Assert.Equal(Size.
Empty
, control.MinimumSize);
4792
yield return new object[] { borderStyle, Size.
Empty
};
System\Windows\Forms\ListControlTests.cs (8)
42
Assert.Equal(Size.
Empty
, control.ClientSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultSize);
86
Assert.Equal(Size.
Empty
, control.MaximumSize);
87
Assert.Equal(Size.
Empty
, control.MinimumSize);
91
Assert.Equal(Size.
Empty
, control.PreferredSize);
102
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ListViewTests.cs (5)
68
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
69
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
112
Assert.Equal(Size.
Empty
, control.MaximumSize);
113
Assert.Equal(Size.
Empty
, control.MinimumSize);
143
Assert.Equal(Size.
Empty
, control.TileSize);
System\Windows\Forms\MdiClientTests.cs (15)
38
Assert.Equal(Size.
Empty
, control.ClientSize);
64
Assert.Equal(Size.
Empty
, control.MaximumSize);
67
Assert.Equal(Size.
Empty
, control.MinimumSize);
70
Assert.Equal(Size.
Empty
, control.PreferredSize);
79
Assert.Equal(Size.
Empty
, control.Size);
775
Assert.Equal(Size.
Empty
, control.ClientSize);
778
Assert.Equal(Size.
Empty
, control.Size);
802
Assert.Equal(Size.
Empty
, control.ClientSize);
805
Assert.Equal(Size.
Empty
, control.Size);
927
Assert.Equal(Size.
Empty
, control.ClientSize);
930
Assert.Equal(Size.
Empty
, control.Size);
954
Assert.Equal(Size.
Empty
, control.ClientSize);
957
Assert.Equal(Size.
Empty
, control.Size);
1167
Assert.Equal(Size.
Empty
, control.Size);
1191
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\MdiControlStripTests.cs (6)
30
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMargin);
31
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMinimumSize);
112
Assert.Equal(Size.
Empty
, mdiControlStrip.MaximumSize);
115
Assert.Equal(Size.
Empty
, mdiControlStrip.MinimumSize);
System\Windows\Forms\MenuStripTests.cs (6)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, control.MaximumSize);
113
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\MonthCalendarTests.cs (5)
66
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
67
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
2446
yield return new object[] { new RECT(0, 0, 0, 0), Size.
Empty
};
System\Windows\Forms\PaddingTests.cs (2)
25
Assert.Equal(Size.
Empty
, padding.Size);
76
Assert.Equal(Size.
Empty
, padding.Size);
System\Windows\Forms\PanelTests.cs (7)
27
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
96
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\PictureBoxTests.cs (4)
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
87
Assert.Equal(Size.
Empty
, control.MaximumSize);
88
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PopupEventArgsTests.cs (2)
14
yield return new object[] { null, null, false, Size.
Empty
};
33
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ProgressBarTests.cs (4)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
78
Assert.Equal(Size.
Empty
, control.MaximumSize);
80
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
67
SizeProperty = Size.
Empty
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
18
SelectedObject = Size.
Empty
System\Windows\Forms\PropertyGridTests.cs (7)
36
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
38
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
83
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
84
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
127
Assert.Equal(Size.
Empty
, control.MaximumSize);
128
Assert.Equal(Size.
Empty
, control.MinimumSize);
131
Assert.NotEqual(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\RadioButtonTests.cs (4)
58
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
93
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\RichTextBoxTests.cs (4)
67
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
68
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
99
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ScrollableControlTests.cs (14)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
45
Assert.Equal(Size.
Empty
, control.ClientSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
95
Assert.Equal(Size.
Empty
, control.PreferredSize);
105
Assert.Equal(Size.
Empty
, control.Size);
435
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
459
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
676
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
700
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
System\Windows\Forms\ScrollBarTests.cs (8)
40
Assert.Equal(Size.
Empty
, control.ClientSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultSize);
79
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
Assert.Equal(Size.
Empty
, control.MinimumSize);
84
Assert.Equal(Size.
Empty
, control.PreferredSize);
95
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\SplitterPanelTests.cs (9)
33
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
34
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
82
Assert.Equal(Size.
Empty
, control.MaximumSize);
83
Assert.Equal(Size.
Empty
, control.MinimumSize);
86
Assert.Equal(Size.
Empty
, control.PreferredSize);
645
Size = Size.
Empty
652
Assert.Equal(Size.
Empty
, control.Size);
659
Assert.Equal(Size.
Empty
, control.Size);
670
Size = Size.
Empty
System\Windows\Forms\SplitterTests.cs (4)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
78
Assert.Equal(Size.
Empty
, control.MaximumSize);
79
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\StatusStripTests.cs (6)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, control.MaximumSize);
112
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
151
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
152
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
153
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (3)
139
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
140
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
141
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControlTests.cs (8)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
77
Assert.Equal(Size.
Empty
, control.ItemSize);
83
Assert.Equal(Size.
Empty
, control.MaximumSize);
84
Assert.Equal(Size.
Empty
, control.MinimumSize);
1545
control.ItemSize = Size.
Empty
;
1576
Assert.Equal(Size.
Empty
, control.ItemSize);
1600
Assert.Equal(Size.
Empty
, control.ItemSize);
System\Windows\Forms\TableLayoutPanelTests.cs (7)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
100
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
104
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\TabPageTests.cs (18)
31
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
32
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
97
Assert.Equal(Size.
Empty
, control.MaximumSize);
98
Assert.Equal(Size.
Empty
, control.MinimumSize);
101
Assert.Equal(Size.
Empty
, control.PreferredSize);
140
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
141
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
171
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
172
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
206
Assert.Equal(Size.
Empty
, control.MaximumSize);
207
Assert.Equal(Size.
Empty
, control.MinimumSize);
210
Assert.Equal(Size.
Empty
, control.PreferredSize);
2425
Size = Size.
Empty
2432
Assert.Equal(Size.
Empty
, control.Size);
2439
Assert.Equal(Size.
Empty
, control.Size);
2450
Size = Size.
Empty
System\Windows\Forms\TextRendererTests.cs (16)
416
yield return new object[] { "string", null, Size.
Empty
};
420
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
};
440
yield return new object[] { "string", null, Size.
Empty
, TextFormatFlags.Default };
444
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
, TextFormatFlags.Default };
521
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont));
522
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400)));
523
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
524
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont));
525
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400)));
526
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
527
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont));
528
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
529
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
530
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont));
531
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
532
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\ToolStripButtonTests.cs (1)
1080
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripContentPanelTests.cs (11)
29
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
30
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
98
Assert.Equal(Size.
Empty
, control.PreferredSize);
1044
Size = Size.
Empty
1051
Assert.Equal(Size.
Empty
, control.Size);
1058
Assert.Equal(Size.
Empty
, control.Size);
1069
Size = Size.
Empty
System\Windows\Forms\ToolStripControlHostTests.cs (2)
2712
yield return new object[] { Size.
Empty
};
4117
Assert.Equal(Size.
Empty
, c.Size);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
117
Assert.Equal(Size.
Empty
, control.MaximumSize);
119
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ToolStripItemTests.cs (1)
10300
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripPanelTests.cs (12)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
30
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
47
Assert.Equal(Size.
Empty
, control.ClientSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
98
Assert.Equal(Size.
Empty
, control.PreferredSize);
109
Assert.Equal(Size.
Empty
, control.Size);
213
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
218
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
747
yield return new object[] { Size.
Empty
};
767
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(6, 23) };
773
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(6, 23) };
779
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(6, 23) };
785
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(6, 23) };
791
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(23, 6) };
820
yield return new object[] { layoutStyle, Size.
Empty
};
866
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(91, 6) };
872
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(91, 6) };
878
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(52, 6) };
884
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(91, 6) };
890
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(52, 6) };
System\Windows\Forms\ToolStripTests.cs (12)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
128
Assert.Equal(Size.
Empty
, control.MaximumSize);
129
Assert.Equal(Size.
Empty
, control.MinimumSize);
190
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
191
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
221
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
222
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
283
Assert.Equal(Size.
Empty
, control.MaximumSize);
284
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TrackBarRendererTests.cs (1)
92
size.Should().NotBe(Size.
Empty
);
System\Windows\Forms\TreeViewTests.cs (4)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\UpDownBaseTests.cs (21)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
70
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
71
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
106
Assert.Equal(Size.
Empty
, control.MaximumSize);
107
Assert.Equal(Size.
Empty
, control.MinimumSize);
1086
yield return new object[] { Size.
Empty
, 120, 0 };
1130
yield return new object[] { Size.
Empty
, 120, 0 };
1581
yield return new object[] { Size.
Empty
};
1628
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), expectedWidth };
1629
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), expectedWidth };
1630
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1631
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1632
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), expectedWidth };
1633
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), expectedWidth };
1635
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20 };
1636
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30 };
1637
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 31 };
1638
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30 };
1639
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 40 };
System\Windows\Forms\UserControlTests.cs (7)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
34
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
102
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\VScrollBarTests.cs (4)
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
88
Assert.Equal(Size.
Empty
, control.MaximumSize);
90
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\WebBrowserTests.cs (18)
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
75
Assert.Equal(Size.
Empty
, control.MaximumSize);
76
Assert.Equal(Size.
Empty
, control.MinimumSize);
4495
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
4496
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
4497
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
4498
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
4534
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
4535
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
4536
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
4537
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
4538
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, false };
4608
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
4609
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
4610
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
4611
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
4612
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
TextBoxBaseTests.cs (21)
4998
yield return new object[] { multiline, wordWrap, BorderStyle.Fixed3D, Size.
Empty
, new Size(4, s_preferredHeight) };
5004
yield return new object[] { multiline, wordWrap, BorderStyle.FixedSingle, Size.
Empty
, new Size(4, s_preferredHeight) };
5010
yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.
Empty
, new Size(0, Control.DefaultFont.Height) };
5059
yield return new object[] { BorderStyle.Fixed3D, Size.
Empty
, 4, s_preferredHeight };
5065
yield return new object[] { BorderStyle.FixedSingle, Size.
Empty
, 4, s_preferredHeight };
5071
yield return new object[] { BorderStyle.None, Size.
Empty
, 0, Control.DefaultFont.Height };
5130
int width = TextRenderer.MeasureText(control.Text, control.Font, Size.
Empty
, TextFormatFlags.SingleLine).Width;
6942
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult };
6943
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult };
6944
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult };
6945
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult };
6987
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false, false };
6988
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false, true };
6989
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false, true };
6990
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false, true };
6991
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false, true };
7068
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false };
7069
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false };
7070
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false };
7071
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false };
7072
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false };
TextBoxTests.cs (4)
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
86
Assert.Equal(Size.
Empty
, control.MaximumSize);
88
Assert.Equal(Size.
Empty
, control.MinimumSize);
TrackBarTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
81
Assert.Equal(Size.
Empty
, control.MaximumSize);
83
Assert.Equal(Size.
Empty
, control.MinimumSize);
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (3)
197
if (offset != Size.
Empty
|| image.Size != frames[0].image.Size)
254
resultFrames.Add((frames[0].elapsed, frames[0].image, offset: Size.
Empty
));
319
resultFrames.Add((frames[i].elapsed, frames[i].image, Size.
Empty
));
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
790
this.Size = SD.Size.
Empty
;