42 references to IsEmpty
System.Windows.Forms (27)
System\Windows\Forms\Control.cs (3)
2068
if (!cachedSize.
IsEmpty
&& (proposedSize == LayoutUtils.s_maxSize))
9753
if (!minSize.
IsEmpty
)
9762
if (!maxSize.
IsEmpty
)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
149
if (value.
IsEmpty
)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1643
if (!_tileSize.
IsEmpty
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
504
if (_itemSize.
IsEmpty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
1466
if (!MinimumSize.
IsEmpty
)
1471
if (!MaximumSize.
IsEmpty
)
1500
if (!MinimumSize.
IsEmpty
)
1505
if (!MaximumSize.
IsEmpty
)
System\Windows\Forms\Form.cs (14)
444
if (_autoScaleBaseSize.
IsEmpty
)
1213
if (!MinimumSize.
IsEmpty
&& !value.
IsEmpty
)
1241
if (!value.
IsEmpty
&& (size.Width > value.Width || size.Height > value.Height))
1330
if (!MaximumSize.
IsEmpty
&& !value.
IsEmpty
)
2980
if (!_autoScaleBaseSize.
IsEmpty
)
5114
if (!minSize.
IsEmpty
)
5119
if (!maxSize.
IsEmpty
)
6764
if (!minTrack.
IsEmpty
|| !maxTrack.
IsEmpty
|| !maximizedBounds.IsEmpty)
6778
if (!minTrack.
IsEmpty
)
6791
if (maxTrack.
IsEmpty
)
6808
if (!maxTrack.
IsEmpty
)
System\Windows\Forms\Input\Cursor.cs (1)
197
if (s_cursorSize.
IsEmpty
)
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
378
if (!cachedSize.
IsEmpty
)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
375
if (!_userAutoScrollMinSize.
IsEmpty
)
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
399
if (proposedSize.
IsEmpty
)
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
73
int newHeight = (subtitleSize.
IsEmpty
? (titleSize.Height + 2 * PanelHeaderVerticalPadding) : (titleSize.Height + subtitleSize.Height + 3 * PanelHeaderVerticalPadding));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
770
else if (!_parentGridSize.
IsEmpty
)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
743
if (!_parentGridSize.
IsEmpty
)
System\Windows\Forms\Design\CommandSet.cs (6)
852
if (snapOn && !snapSize.
IsEmpty
)
1148
if (prop is null || gridSize.
IsEmpty
)
2412
if (!grid.
IsEmpty
)
2656
if (!curSize.
IsEmpty
&& !curLoc.IsEmpty)
3340
if (gridSize.
IsEmpty
)
3353
if (gridSize.
IsEmpty
)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
692
if (snapOn && !snapSize.
IsEmpty
)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
332
if (size.
IsEmpty
)
350
using Icon icon = new(resourceStream, size.
IsEmpty
? SystemIconSize : size);
System.Windows.Forms.Tests (2)
System\Resources\ResXFileRef.ConverterTests.cs (2)
106
Assert.False(result.Size.
IsEmpty
);
131
Assert.False(result.Size.
IsEmpty
);