89 references to 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)
4496if (!parentClient.IsEmpty) 5902if (rc.IsEmpty) 7924if (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)
4496if (!oldResizeRect.Equals(_layout.ResizeBoxRect) && !_layout.ResizeBoxRect.IsEmpty) 6823if (!rect.IsEmpty) 9798if (!cellDisplayRect.IsEmpty) 9823if (!columnDisplayRect.IsEmpty) 9867if (!rowDisplayRect.IsEmpty) 9927if (rowDisplayRect.IsEmpty) 9964if (rowDisplayRect.IsEmpty) 17507if (!_layout.ResizeBoxRect.IsEmpty) 28962if (rectUpper.IsEmpty || rectLower.IsEmpty) 28964if (!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)
653if (!_outlineRect.IsEmpty || OwnerGridView is null) 1579if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) 1668if (outline.IsEmpty) 1733if (outline.IsEmpty) 1851if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) 1888if (Rectangle.Intersect(rect, clipRect).IsEmpty)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
120if (!_lastClientRectangle.IsEmpty && currentClientRectangle.Width > _lastClientRectangle.Width)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
891if (!targetRectangle.IsEmpty) 906if (targetRectangle.IsEmpty) 1097if (gridEntry is null || rect.IsEmpty) 1105if (clipRect.IsEmpty) 1160if (clipRect.IsEmpty) 3581if (!_lastClientRect.IsEmpty && newRect.Width > _lastClientRect.Width) 3587if (!_lastClientRect.IsEmpty && yDelta > 0)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
359if (!_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)
313_windowBounds = _windowBounds.IsEmpty ? iconBounds : Rectangle.Union(_windowBounds, iconBounds);
System\Windows\Forms\Form.cs (2)
6764if (!minTrack.IsEmpty || !maxTrack.IsEmpty || !maximizedBounds.IsEmpty) 6816if (!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)
161if (displayRectangle.IsEmpty)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
195if (!_displayRect.IsEmpty) 553if (_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)
951if (_dragImageRect.IsEmpty)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
382if (!borderRect.IsEmpty) 851if (!newBorderRect.IsEmpty)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
83if (!_lastRectangle.IsEmpty) 329if (!_lastRectangle.IsEmpty)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
829if (!bounds.IsEmpty)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
104bounds = 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) 1821if (_statusCommandUI is not null && !offset.IsEmpty) 1829if (offset.IsEmpty && !cancel) 1973if (!_mouseDragOffset.IsEmpty && _graphics is not null) 1987if (!oldFrameRect.IsEmpty)
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
230if (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)
1080if (newOffset.IsEmpty) 1090if (!newOffset.IsEmpty)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (9)
331if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.IsEmpty) 344if (!handlerClip.IsEmpty) 373if (!_outerRect.IsEmpty && !_selUIsvc.Disposing) 385if ((GetRules() & SelectionRules.Visible) == SelectionRules.None || _outerRect.IsEmpty || _innerRect.IsEmpty) 511if (!_innerRect.IsEmpty) 515if (_outerRect.IsEmpty || !_outerRect.Equals(rcOuterNew)) 517if (!_outerRect.IsEmpty) 536sizeChanged = _outerRect.IsEmpty || !_outerRect.Equals(rcNew);
System.Windows.Forms.Primitives.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.Windows.Forms.Tests (5)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
91Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
28Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
95Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.IsEmpty);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
112Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().IsEmpty); 131Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().IsEmpty);
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
27Assert.False(sc.SplitterRectangle.IsEmpty);