43 references to IsEmpty
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
196
if (!_iconSize.
IsEmpty
)
System.Windows.Forms (27)
System\Windows\Forms\Control.cs (3)
2066
if (!cachedSize.
IsEmpty
&& (proposedSize == LayoutUtils.s_maxSize))
9745
if (!minSize.
IsEmpty
)
9754
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)
1463
if (!MinimumSize.
IsEmpty
)
1468
if (!MaximumSize.
IsEmpty
)
1497
if (!MinimumSize.
IsEmpty
)
1502
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
)
2977
if (!_autoScaleBaseSize.
IsEmpty
)
5108
if (!minSize.
IsEmpty
)
5113
if (!maxSize.
IsEmpty
)
6758
if (!minTrack.
IsEmpty
|| !maxTrack.
IsEmpty
|| !maximizedBounds.IsEmpty)
6772
if (!minTrack.
IsEmpty
)
6785
if (maxTrack.
IsEmpty
)
6802
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)
369
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)
108
Assert.False(result.Size.
IsEmpty
);
133
Assert.False(result.Size.
IsEmpty
);