41 references to IsEmpty
System.Windows.Forms (28)
System\Windows\Forms\Components\ImageList\ImageList.cs (1)
149
if (value.
IsEmpty
)
System\Windows\Forms\Control.cs (3)
2343
if (!cachedSize.
IsEmpty
&& (proposedSize == LayoutUtils.s_maxSize))
10637
if (!minSize.
IsEmpty
)
10646
if (!maxSize.
IsEmpty
)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1645
if (!_tileSize.
IsEmpty
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
507
if (_itemSize.
IsEmpty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
1463
if (!MinimumSize.
IsEmpty
)
1468
if (!MaximumSize.
IsEmpty
)
1497
if (!MinimumSize.
IsEmpty
)
1502
if (!MaximumSize.
IsEmpty
)
System\Windows\Forms\Form.cs (14)
443
if (_autoScaleBaseSize.
IsEmpty
)
1209
if (!MinimumSize.
IsEmpty
&& !value.
IsEmpty
)
1237
if (!value.
IsEmpty
&& (size.Width > value.Width || size.Height > value.Height))
1326
if (!MaximumSize.
IsEmpty
&& !value.
IsEmpty
)
3043
if (!_autoScaleBaseSize.
IsEmpty
)
5250
if (!minSize.
IsEmpty
)
5255
if (!maxSize.
IsEmpty
)
6935
if (!minTrack.
IsEmpty
|| !maxTrack.
IsEmpty
|| !maximizedBounds.IsEmpty)
6949
if (!minTrack.
IsEmpty
)
6962
if (maxTrack.
IsEmpty
)
6979
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\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
516
bool hasImage = !context.ImageSize.
IsEmpty
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
367
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)
764
else if (!_parentGridSize.
IsEmpty
)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
743
if (!_parentGridSize.
IsEmpty
)
System\Windows\Forms\Design\CommandSet.cs (6)
846
if (snapOn && !snapSize.
IsEmpty
)
1142
if (prop is null || gridSize.
IsEmpty
)
2407
if (!grid.
IsEmpty
)
2651
if (!curSize.
IsEmpty
&& !curLoc.IsEmpty)
3335
if (gridSize.
IsEmpty
)
3348
if (gridSize.
IsEmpty
)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
689
if (snapOn && !snapSize.
IsEmpty
)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
377
if (size.
IsEmpty
)
395
using Icon icon = new(resourceStream, size.
IsEmpty
? SystemIconSize : size);