99 references to IsEmpty
System.Drawing.Common (6)
System\Drawing\Bitmap.cs (1)
377area.IsEmpty ? null : &rect,
System\Drawing\Icon.cs (2)
286if (!imageRect.IsEmpty) 299if (!targetRect.IsEmpty)
System\Drawing\Imaging\Metafile.cs (3)
387frameRect.IsEmpty ? null : &rect, 438frameRect.IsEmpty ? null : &rect, 512frameRect.IsEmpty ? null : &rect,
System.Private.Windows.Core.TestUtilities (2)
FluentAssertions\FluentAssertExtensions.cs (2)
110.ForCondition(assertions.Subject is Rectangle rect && rect.IsEmpty) 123.ForCondition(assertions.Subject is Rectangle rect && !rect.IsEmpty)
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (1)
23rect.IsEmpty ? null : (Rect*)&rect,
System.Windows.Forms (52)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (2)
58public override int LinesPerPage => _owningChildEditAccessibilityObject.BoundingRectangle.IsEmpty ? 0 : OwnerChildEditLinesCount; 201=> rect.IsEmpty || rect.Width <= 0 || rect.Height <= 0;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1804Rectangle intersect = !clipRect.IsEmpty ? Rectangle.Intersect(posRect, clipRect) : posRect;
System\Windows\Forms\Control.cs (3)
4590if (!parentClient.IsEmpty) 5996if (rc.IsEmpty) 8013if (cliprect.IsEmpty)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (2)
87: _owningComboBox.ChildEditAccessibleObject.BoundingRectangle.IsEmpty 262=> rect.IsEmpty || rect.Width <= 0 || rect.Height <= 0;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
4490if (!oldResizeRect.Equals(_layout.ResizeBoxRect) && !_layout.ResizeBoxRect.IsEmpty) 6817if (!rect.IsEmpty) 9792if (!cellDisplayRect.IsEmpty) 9817if (!columnDisplayRect.IsEmpty) 9861if (!rowDisplayRect.IsEmpty) 9921if (rowDisplayRect.IsEmpty) 9958if (rowDisplayRect.IsEmpty) 17498if (!_layout.ResizeBoxRect.IsEmpty) 28951if (rectUpper.IsEmpty || rectLower.IsEmpty) 28953if (!rectUpper.IsEmpty || !rectLower.IsEmpty)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
64if (bounds.IsEmpty)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (2)
56|| GetSubItemBounds(index).IsEmpty) 115if (GetSubItemBounds(i).IsEmpty)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
43if (bounds.IsEmpty)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (6)
644if (!_outlineRect.IsEmpty || OwnerGridView is null) 1570if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) 1659if (outline.IsEmpty) 1724if (outline.IsEmpty) 1842if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) 1879if (Rectangle.Intersect(rect, clipRect).IsEmpty)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
122if (!_lastClientRectangle.IsEmpty && currentClientRectangle.Width > _lastClientRectangle.Width)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
914if (!targetRectangle.IsEmpty) 929if (targetRectangle.IsEmpty) 1120if (gridEntry is null || rect.IsEmpty) 1128if (clipRect.IsEmpty) 1183if (clipRect.IsEmpty) 3619if (!_lastClientRect.IsEmpty && newRect.Width > _lastClientRect.Width) 3625if (!_lastClientRect.IsEmpty && yDelta > 0)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
362if (!_cachedDisplayRect.IsEmpty)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
248if (rect.IsEmpty) 396=> rect.IsEmpty || rect.Width <= 0 || rect.Height <= 0;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
388while (node is not null && node.Bounds.IsEmpty)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
307_windowBounds = _windowBounds.IsEmpty ? iconBounds : Rectangle.Union(_windowBounds, iconBounds);
System\Windows\Forms\Form.cs (2)
6871if (!minTrack.IsEmpty || !maxTrack.IsEmpty || !maximizedBounds.IsEmpty) 6923if (!maximizedBounds.IsEmpty)
System\Windows\Forms\Input\Cursor.cs (3)
127if (value.IsEmpty) 270if (!imageRect.IsEmpty) 283if (!targetRect.IsEmpty)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
160if (displayRectangle.IsEmpty)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
193if (!_displayRect.IsEmpty) 545if (_displayRect.IsEmpty)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1596if (!topContainerBounds.IsEmpty)
System.Windows.Forms.Design (28)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
945if (_dragImageRect.IsEmpty)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
382if (!borderRect.IsEmpty) 851if (!newBorderRect.IsEmpty)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
81if (!_lastRectangle.IsEmpty) 322if (!_lastRectangle.IsEmpty)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
829if (!bounds.IsEmpty)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
100bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.Union(bounds, childControl.Bounds);
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
1012if (!nonClipRect.IsEmpty && !parentRect.Contains(controlRect)) 1018else if (nonClipRect.IsEmpty) 1781if (!offset.IsEmpty && _graphics is not null) 1815if (_statusCommandUI is not null && !offset.IsEmpty) 1823if (offset.IsEmpty && !cancel) 1967if (!_mouseDragOffset.IsEmpty && _graphics is not null) 1981if (!oldFrameRect.IsEmpty)
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
200if (offset.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (2)
34if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty) 70if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.cs (2)
1077if (newOffset.IsEmpty) 1087if (!newOffset.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (9)
328if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty) 341if (!handlerClip.IsEmpty) 367if (!_outerRect.IsEmpty && !_selUIsvc.Disposing) 379if ((GetRules() & SelectionRules.Visible) == SelectionRules.None || _outerRect.IsEmpty || _innerRect.IsEmpty) 505if (!_innerRect.IsEmpty) 509if (_outerRect.IsEmpty || !_outerRect.Equals(rcOuterNew)) 511if (!_outerRect.IsEmpty) 527sizeChanged = _outerRect.IsEmpty || !_outerRect.Equals(rcNew);
System.Windows.Forms.Tests (9)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (4)
1179Assert.Equal(showBounds, !listView.DefaultGroup.AccessibilityObject.Bounds.IsEmpty); 1180Assert.Equal(showBounds, !listView.Groups[0].AccessibilityObject.Bounds.IsEmpty); 1223Assert.False(listView.DefaultGroup.AccessibilityObject.Bounds.IsEmpty); 1224Assert.True(listView.Groups[0].AccessibilityObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
93Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
30Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
97Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
114Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().IsEmpty); 133Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().IsEmpty);
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
26Assert.False(sc.SplitterRectangle.IsEmpty);