89 references to IsEmpty
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (1)
23
rect.
IsEmpty
? null : (Rect*)&rect,
System.Windows.Forms (52)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (2)
58
public 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)
1804
Rectangle intersect = !clipRect.
IsEmpty
? Rectangle.Intersect(posRect, clipRect) : posRect;
System\Windows\Forms\Control.cs (3)
4496
if (!parentClient.
IsEmpty
)
5902
if (rc.
IsEmpty
)
7924
if (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)
4496
if (!oldResizeRect.Equals(_layout.ResizeBoxRect) && !_layout.ResizeBoxRect.
IsEmpty
)
6823
if (!rect.
IsEmpty
)
9798
if (!cellDisplayRect.
IsEmpty
)
9823
if (!columnDisplayRect.
IsEmpty
)
9867
if (!rowDisplayRect.
IsEmpty
)
9927
if (rowDisplayRect.
IsEmpty
)
9964
if (rowDisplayRect.
IsEmpty
)
17507
if (!_layout.ResizeBoxRect.
IsEmpty
)
28962
if (rectUpper.
IsEmpty
|| rectLower.
IsEmpty
)
28964
if (!rectUpper.
IsEmpty
|| !rectLower.
IsEmpty
)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
64
if (bounds.
IsEmpty
)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (2)
56
|| GetSubItemBounds(index).
IsEmpty
)
115
if (GetSubItemBounds(i).
IsEmpty
)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
43
if (bounds.
IsEmpty
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (6)
653
if (!_outlineRect.
IsEmpty
|| OwnerGridView is null)
1579
if (!Rectangle.Intersect(textRect, clipRect).
IsEmpty
)
1668
if (outline.
IsEmpty
)
1733
if (outline.
IsEmpty
)
1851
if (!Rectangle.Intersect(rectPaint, clipRect).
IsEmpty
)
1888
if (Rectangle.Intersect(rect, clipRect).
IsEmpty
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
120
if (!_lastClientRectangle.
IsEmpty
&& currentClientRectangle.Width > _lastClientRectangle.Width)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (7)
891
if (!targetRectangle.
IsEmpty
)
906
if (targetRectangle.
IsEmpty
)
1097
if (gridEntry is null || rect.
IsEmpty
)
1105
if (clipRect.
IsEmpty
)
1160
if (clipRect.
IsEmpty
)
3581
if (!_lastClientRect.
IsEmpty
&& newRect.Width > _lastClientRect.Width)
3587
if (!_lastClientRect.
IsEmpty
&& yDelta > 0)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
359
if (!_cachedDisplayRect.
IsEmpty
)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
248
if (rect.
IsEmpty
)
396
=> rect.
IsEmpty
|| rect.Width <= 0 || rect.Height <= 0;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
388
while (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)
6764
if (!minTrack.IsEmpty || !maxTrack.IsEmpty || !maximizedBounds.
IsEmpty
)
6816
if (!maximizedBounds.
IsEmpty
)
System\Windows\Forms\Input\Cursor.cs (3)
127
if (value.
IsEmpty
)
270
if (!imageRect.
IsEmpty
)
283
if (!targetRect.
IsEmpty
)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
161
if (displayRectangle.
IsEmpty
)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
195
if (!_displayRect.
IsEmpty
)
553
if (_displayRect.
IsEmpty
)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1596
if (!topContainerBounds.
IsEmpty
)
System.Windows.Forms.Design (28)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
951
if (_dragImageRect.
IsEmpty
)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
382
if (!borderRect.
IsEmpty
)
851
if (!newBorderRect.
IsEmpty
)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
83
if (!_lastRectangle.
IsEmpty
)
329
if (!_lastRectangle.
IsEmpty
)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
829
if (!bounds.
IsEmpty
)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
104
bounds = bounds.
IsEmpty
? childControl.Bounds : Rectangle.Union(bounds, childControl.Bounds);
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
1012
if (!nonClipRect.
IsEmpty
&& !parentRect.Contains(controlRect))
1018
else if (nonClipRect.
IsEmpty
)
1781
if (!offset.
IsEmpty
&& _graphics is not null)
1821
if (_statusCommandUI is not null && !offset.
IsEmpty
)
1829
if (offset.
IsEmpty
&& !cancel)
1973
if (!_mouseDragOffset.
IsEmpty
&& _graphics is not null)
1987
if (!oldFrameRect.
IsEmpty
)
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
230
if (offset.
IsEmpty
)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (2)
34
if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.
IsEmpty
)
70
if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.
IsEmpty
)
System\Windows\Forms\Design\SelectionUIService.cs (2)
1080
if (newOffset.
IsEmpty
)
1090
if (!newOffset.
IsEmpty
)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (9)
331
if ((GetRules() & SelectionRules.Visible) != SelectionRules.None && !_outerRect.
IsEmpty
)
344
if (!handlerClip.
IsEmpty
)
373
if (!_outerRect.
IsEmpty
&& !_selUIsvc.Disposing)
385
if ((GetRules() & SelectionRules.Visible) == SelectionRules.None || _outerRect.
IsEmpty
|| _innerRect.
IsEmpty
)
511
if (!_innerRect.
IsEmpty
)
515
if (_outerRect.
IsEmpty
|| !_outerRect.Equals(rcOuterNew))
517
if (!_outerRect.
IsEmpty
)
536
sizeChanged = _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)
91
Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.
IsEmpty
);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
28
Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.
IsEmpty
);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
95
Assert.Equal(boundsIsEmpty, accessibleObject.Bounds.
IsEmpty
);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
112
Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().
IsEmpty
);
131
Assert.Equal(rectangleIsEmpty, ((IKeyboardToolTip)listViewItem).GetNativeScreenRectangle().
IsEmpty
);
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
27
Assert.False(sc.SplitterRectangle.
IsEmpty
);