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