875 references to Empty
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
193Rectangle.Empty,
System.Drawing.Common.Tests (36)
mono\System.Drawing\GraphicsTests.cs (2)
2086Rectangle rect = Rectangle.Empty; 2103Rectangle rect = Rectangle.Empty;
System\Drawing\BitmapTests.cs (1)
1095AssertExtensions.Throws<ArgumentNullException>("bitmapData", () => bitmap.LockBits(Rectangle.Empty, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, null));
System\Drawing\BufferedGraphicsContextTests.cs (7)
23using BufferedGraphics bufferedGraphics = context.Allocate(graphics, Rectangle.Empty); 62using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, Rectangle.Empty)) 130using BufferedGraphics graphics = context.Allocate(null, Rectangle.Empty); 152AssertExtensions.Throws<ArgumentException>(null, () => context.Allocate(graphics, Rectangle.Empty)); 167Assert.Throws<InvalidOperationException>(() => context.Allocate(graphics, Rectangle.Empty)); 231using (context.Allocate(graphics, Rectangle.Empty)) 243using (context.Allocate(graphics, Rectangle.Empty))
System\Drawing\BufferedGraphicsTests.cs (1)
119using BufferedGraphics graphics = context.Allocate(null, Rectangle.Empty);
System\Drawing\Printing\PreviewPrintControllerTests.cs (10)
22PrintPageEventArgs printEventArgs = new(null, Rectangle.Empty, Rectangle.Empty, new PageSettings()); 36PrintPageEventArgs e = new(null, Rectangle.Empty, Rectangle.Empty, null); 55PrintPageEventArgs printEventArgs = new(null, Rectangle.Empty, Rectangle.Empty, null); 64PrintPageEventArgs e = new(null, Rectangle.Empty, Rectangle.Empty, null); 73controller.OnEndPage(document, new PrintPageEventArgs(null, Rectangle.Empty, Rectangle.Empty, null));
System\Drawing\Printing\PrintControllerTests.cs (6)
22PrintPageEventArgs printEventArgs = new(null, Rectangle.Empty, Rectangle.Empty, null); 37Assert.Null(controller.OnStartPage(document, new PrintPageEventArgs(null, Rectangle.Empty, Rectangle.Empty, null))); 46controller.OnEndPage(document, new PrintPageEventArgs(null, Rectangle.Empty, Rectangle.Empty, null));
System\Drawing\RegionTests.cs (2)
199path2.AddRectangle(Rectangle.Empty); 1308yield return new object[] { new Region(), Rectangle.Empty, false };
System\Drawing\TextureBrushTests.cs (7)
244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty)); 246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null)); 248AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, Rectangle.Empty)); 260AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty)); 262AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty, null)); 264AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, WrapMode.Tile, Rectangle.Empty)); 275Assert.ThrowsAny<ArgumentException>(() => new TextureBrush(image, wrapMode, Rectangle.Empty));
System.Drawing.Primitives (1)
System\Drawing\Rectangle.cs (1)
300return Empty;
System.Windows.Forms (211)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
179if (IsDegenerate(_owningControl.TryGetTarget(out Control? target) ? target.ClientRectangle : Rectangle.Empty))
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
49return Rectangle.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
43: Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
450TopLeftHeader = Rectangle.Empty, 451ColumnHeaders = Rectangle.Empty, 452RowHeaders = Rectangle.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridView.LayoutData.cs (7)
15public Rectangle ClientRectangle = Rectangle.Empty; 18public Rectangle Inside = Rectangle.Empty; 21public Rectangle RowHeaders = Rectangle.Empty; 24public Rectangle ColumnHeaders = Rectangle.Empty; 27public Rectangle TopLeftHeader = Rectangle.Empty; 30public Rectangle Data = Rectangle.Empty; 33public Rectangle ResizeBoxRect = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (9)
4399newLayout.ColumnHeaders = Rectangle.Empty; 4441newLayout.TopLeftHeader = Rectangle.Empty; 4446newLayout.RowHeaders = Rectangle.Empty; 4447newLayout.TopLeftHeader = Rectangle.Empty; 8210return Rectangle.Empty; 8320return Rectangle.Empty; 9040return Rectangle.Empty; 9108return Rectangle.Empty; 25604Cursor.Clip = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
41return Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
155return Rectangle.Empty; 227return Rectangle.Empty; 687return Rectangle.Empty; 870resultBounds = Rectangle.Empty; 876resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (5)
611return Rectangle.Empty; 1029return Rectangle.Empty; 1467return Rectangle.Empty; 1476protected virtual Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => Rectangle.Empty; 1537protected virtual Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
323return Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (5)
450return Rectangle.Empty; 516return Rectangle.Empty; 525return Rectangle.Empty; 1543resultBounds = Rectangle.Empty; 1549resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
219return Rectangle.Empty; 756Rectangle contentBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
32: (Owner.DataGridView?.IsHandleCreated == true) ? GetAccessibleObjectBounds(Parent) : Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
734return Rectangle.Empty; 844return Rectangle.Empty; 1883Rectangle resultBounds = Rectangle.Empty; 1884dropDownButtonRect = Rectangle.Empty; 2356return Rectangle.Empty; 2369resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
74return DataGridView.LayoutInfo.TopLeftHeader != Rectangle.Empty; 294if (DataGridView.LayoutInfo.TopLeftHeader != Rectangle.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (7)
231return Rectangle.Empty; 297return Rectangle.Empty; 578Rectangle imageBounds = Rectangle.Empty; 743Rectangle resultBounds = Rectangle.Empty; 755? Rectangle.Empty 761return Rectangle.Empty; 794return Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
426return Rectangle.Empty; 500return Rectangle.Empty; 902Rectangle resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
51return Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
189return Rectangle.Empty; 251return Rectangle.Empty; 638Rectangle resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
29return Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (3)
262return Rectangle.Empty; 336return Rectangle.Empty; 662Rectangle resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (3)
34return Rectangle.Empty; 89return Rectangle.Empty; 230Rectangle resultBounds = Rectangle.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
29return Rectangle.Empty;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (2)
33return Rectangle.Empty; 46return Rectangle.Empty;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
32owner.GetToolNativeScreenRectangle() : Rectangle.Empty;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1448return Rectangle.Empty;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
59return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListView.cs (6)
3582return Rectangle.Empty; 3606return Rectangle.Empty; 3611return Rectangle.Empty; 3620? Rectangle.Empty 3636return Rectangle.Empty; 3658return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
32return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
45return Rectangle.Empty; 51return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
86return Rectangle.Empty; 92return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
41? Rectangle.Empty 200internal virtual Rectangle GetSubItemBounds(int index) => Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (1)
180: Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (1)
19? Rectangle.Empty
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (1)
127: Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (1)
101: Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
105return Rectangle.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (2)
39return Rectangle.Empty; 60return Rectangle.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (4)
46private Rectangle _outlineRect = Rectangle.Empty; 675_outlineRect = Rectangle.Empty; 1641_outlineRect = Rectangle.Empty; 1656_outlineRect = Rectangle.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
31: Rectangle.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
31private Rectangle _lastClientRectangle = Rectangle.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
82private Rectangle _lastClientRect = Rectangle.Empty; 596return Rectangle.Empty; 611return Rectangle.Empty; 903targetRectangle = Rectangle.Empty; 3577int yDelta = _lastClientRect == Rectangle.Empty ? 0 : newRect.Height - _lastClientRect.Height;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
27private Rectangle _dragBaseRect = Rectangle.Empty; // the original bounds of our control. 499_dragBaseRect = Rectangle.Empty;
System\Windows\Forms\Controls\TabControl\TabControl.cs (10)
942_cachedDisplayRect = Rectangle.Empty; 1150_cachedDisplayRect = Rectangle.Empty; 1245_cachedDisplayRect = Rectangle.Empty; 1413_cachedDisplayRect = Rectangle.Empty; 1446_cachedDisplayRect = Rectangle.Empty; 1529_cachedDisplayRect = Rectangle.Empty; 1598_cachedDisplayRect = Rectangle.Empty; 1891_cachedDisplayRect = Rectangle.Empty; 1903_cachedDisplayRect = Rectangle.Empty; 2006_cachedDisplayRect = Rectangle.Empty;
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
24return Rectangle.Empty;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
527return Rectangle.Empty;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
29return Rectangle.Empty; 36return Rectangle.Empty;
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
17owner.GetPageRectangle() : Rectangle.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
26owner.GetToolNativeScreenRectangle() : Rectangle.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
143public override Rectangle RectangleToScreen(Rectangle rect) => Owner is not null ? Owner.RectangleToScreen(rect) : Rectangle.Empty; 206: Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
224return Rectangle.Empty; 378Rectangle lastItemBounds = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
41private Rectangle _lastInsertionMarkRect = Rectangle.Empty; 855return (GripStyle == ToolStripGripStyle.Visible) ? Grip.Bounds : Rectangle.Empty; 1783Rectangle regionRect = (item is null) ? Rectangle.Empty : item.Bounds; 1828else if (regionRect != Rectangle.Empty) 1849if (_lastInsertionMarkRect != Rectangle.Empty) 1856_lastInsertionMarkRect = Rectangle.Empty; 3777if (_lastInsertionMarkRect != Rectangle.Empty) 4169Rectangle gripRectangle = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
357Rectangle specifiedBounds = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
198Rectangle dropDownArrowRect = (InternalLayout is ToolStripDropDownButtonInternalLayout layout) ? layout.DropDownArrowRect : Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
16private Rectangle _dropDownArrowRect = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (6)
15private Rectangle _checkRectangle = Rectangle.Empty; 16private Rectangle _imageRectangle = Rectangle.Empty; 17private Rectangle _arrowRectangle = Rectangle.Empty; 18private Rectangle _textRectangle = Rectangle.Empty; 19private Rectangle _imageMarginBounds = Rectangle.Empty; 382_imageRectangle = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
29private Rectangle _bounds = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
307return Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (2)
79return Rectangle.Empty; 103return Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (2)
25private Rectangle _cachedBounds = Rectangle.Empty; 366if (ToolStripPanelRow.Bounds == Rectangle.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
17private Rectangle _bounds = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (2)
39get { return Rectangle.Empty; } 44get { return Rectangle.Empty; }
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
758if (imageRect != Rectangle.Empty && image is not null) 1377paintRects[i] = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
781if (imageRect != Rectangle.Empty && image is not null) 824if (imageRect != Rectangle.Empty && image is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (5)
103return Rectangle.Empty; 119return Rectangle.Empty; 130return Rectangle.Empty; 133return Rectangle.Empty; 139return Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
17private Rectangle _dropDownButtonBounds = Rectangle.Empty; 21private Rectangle _splitterBounds = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
139Rectangle insertionRect = Rectangle.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (10)
12private Rectangle _displayRectangle = Rectangle.Empty; 177_displayRectangle = Rectangle.Empty; 217Rectangle alignedLeftItems = Rectangle.Empty; 218Rectangle alignedRightItems = Rectangle.Empty; 301alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x, y, itemSize.Width, itemSize.Height) 314alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x, y, itemSize.Width, itemSize.Height) 362Rectangle alignedLeftItems = Rectangle.Empty; 363Rectangle alignedRightItems = Rectangle.Empty; 438alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x, y, itemSize.Width, itemSize.Height) 446alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x, y, itemSize.Width, itemSize.Height)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
28return Rectangle.Empty;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (2)
26return Rectangle.Empty; 31return ParentInternal?.SystemIAccessible.TryGetLocation(GetChildId()) ?? Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (4)
234return Rectangle.Empty; 244return Rectangle.Empty; 267return Rectangle.Empty; 273return Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
61return TreeView?.RectangleToScreen(bounds) ?? Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
29return Rectangle.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
18owner.GetToolNativeScreenRectangle() : Rectangle.Empty;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
834Rectangle upDownEditBounds = Rectangle.Empty; 835Rectangle upDownButtonsBounds = Rectangle.Empty;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (2)
33return Rectangle.Empty; 46return owner.ParentInternal?.RectangleToScreen(bounds) ?? Rectangle.Empty;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
36: Rectangle.Empty;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
308_windowBounds = Rectangle.Empty;
System\Windows\Forms\Form.AccessibleObject.cs (2)
23: Rectangle.Empty; 27? Rectangle.Empty
System\Windows\Forms\Form.cs (1)
3650Rectangle clientRect = mdiclient is null ? Rectangle.Empty : mdiclient.ClientRectangle;
System\Windows\Forms\Input\Cursor.cs (2)
352DrawImageCore(g, Rectangle.Empty, targetRect, stretch: false); 360DrawImageCore(g, Rectangle.Empty, targetRect, stretch: true);
System\Windows\Forms\Layout\ArrangedElement.cs (1)
13private Rectangle _bounds = Rectangle.Empty;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
380Rectangle remainingBounds = measureOnly ? Rectangle.Empty : container.DisplayRectangle; 1152Rectangle anchorDest = GetAnchorDestination(element, Rectangle.Empty, measureOnly: true); 1163Rectangle anchorDest = GetAnchorDestination(element, Rectangle.Empty, measureOnly: true);
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (1)
19owner.GetToolNativeScreenRectangle() : Rectangle.Empty;
System\Windows\Forms\Screen.cs (1)
24private Rectangle _workingArea = Rectangle.Empty;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
27private Rectangle _displayRect = Rectangle.Empty;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
27return Rectangle.Empty;
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1595Rectangle topContainerBounds = ((IKeyboardToolTip?)TopLevelControl)?.GetNativeScreenRectangle() ?? Rectangle.Empty; 2319if (bounds == Rectangle.Empty)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
417return Rectangle.Empty; 433return Rectangle.Empty;
System.Windows.Forms.Design (88)
System\ComponentModel\Design\SelectionService.cs (1)
473_statusCommandUI.SetStatusInformation(Rectangle.Empty);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
97=> DesignerFrameValid ? DesignerFrame.DisplayRectangle : Rectangle.Empty;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
298return Rectangle.Empty;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (2)
20private Rectangle _alternativeBounds = Rectangle.Empty; // if !empty, this represents the bounds of the tray control this glyph is related to 36: this(behavior, adorner, Rectangle.Empty, null)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
115_dragImageRect = Rectangle.Empty; 116_clearDragImageRect = Rectangle.Empty; 201if (_dragImageRect != Rectangle.Empty) 938_dragImageRect = Rectangle.Empty; 939_clearDragImageRect = Rectangle.Empty;
System\Windows\Forms\Design\Behavior\Glyph.cs (1)
38public virtual Rectangle Bounds => Rectangle.Empty;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
629Rectangle newBorderRect = Rectangle.Empty; 630Rectangle targetBorderRect = Rectangle.Empty;
System\Windows\Forms\Design\Behavior\SelectionManager.cs (3)
149currentSelectionBounds = currentSelectionBounds == Rectangle.Empty 316Region toRefresh = new(Rectangle.Empty); 444if (toUpdate != Rectangle.Empty)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
38_lastRectangle = Rectangle.Empty; 89_lastRectangle = Rectangle.Empty;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (3)
65_glyphBounds = Rectangle.Empty; 213return _glyphBounds != Rectangle.Empty && baseParentBounds.Contains(_glyphBounds) && _glyphBounds.Contains(p) ? Cursors.Hand : null; 227if (_relatedPanel!.Visible && _image is not null && _glyphBounds != Rectangle.Empty && baseParentBounds.Contains(_glyphBounds))
System\Windows\Forms\Design\ComponentTray.cs (7)
54private Rectangle _mouseDragWorkspace = Rectangle.Empty; // a temp work rectangle we cache for perf 613Rectangle ISelectionUIHandler.GetComponentBounds(object component) => Rectangle.Empty; 624return Rectangle.Empty; 655Cursor.Clip = Rectangle.Empty; 1192Cursor.Clip = Rectangle.Empty; 1334Cursor.Clip = Rectangle.Empty; 2256Cursor.Clip = Rectangle.Empty;
System\Windows\Forms\Design\ControlDesigner.cs (1)
682Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(Control) ?? Rectangle.Empty;
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (4)
19private Rectangle _controlRect = Rectangle.Empty; 37_controlRect = Rectangle.Empty; 59_controlRect = Rectangle.Empty; 71if (e is not null && _controlRect != Rectangle.Empty && !_controlRect.Contains(new Point(e.X, e.Y)))
System\Windows\Forms\Design\DesignerUtils.cs (1)
467_ => Rectangle.Empty
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
814Rectangle bounds = Rectangle.Empty;
System\Windows\Forms\Design\InheritanceUI.cs (1)
34if (s_inheritanceGlyphRect == Rectangle.Empty)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
98Rectangle bounds = Rectangle.Empty;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
771bounds = _selectionHandler.GetUpdatedRect(Rectangle.Empty, bounds, false);
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
23private Rectangle _mouseDragOffset = Rectangle.Empty; // always keeps the current rectangle 520Rectangle tempBounds = GetAdjustedSnapLocation(Rectangle.Empty, bounds); 529bounds = GetAdjustedSnapLocation(Rectangle.Empty, bounds); 1120Rectangle r = GetUpdatedRect(Rectangle.Empty, new Rectangle(pt.X, pt.Y, 0, 0), false); 1773_mouseDragOffset = Rectangle.Empty; 1778Cursor.Clip = Rectangle.Empty; 1966_mouseDragOffset = GetUpdatedRect(Rectangle.Empty, _mouseDragOffset, true);
System\Windows\Forms\Design\SelectionUIHandler.cs (3)
21private Rectangle _dragOffset = Rectangle.Empty; // this gets added to a component's x, y, width, height 222Cursor.Clip = Rectangle.Empty; 223_dragOffset = Rectangle.Empty;
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (1)
77_region = new(Rectangle.Empty);
System\Windows\Forms\Design\SelectionUIService.cs (3)
40private Rectangle _mouseDragOffset = Rectangle.Empty; // current drag offset 196_mouseDragOffset = Rectangle.Empty; 1066Rectangle newOffset = Rectangle.Empty;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (4)
62internal Rectangle _innerRect = Rectangle.Empty; // inner part of selection (== control bounds) 63internal Rectangle _outerRect = Rectangle.Empty; // outer part of selection (inner + border size) 338_region = new(Rectangle.Empty); 535Rectangle rcNew = Rectangle.Empty;
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
200Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(_splitterPanel1!) ?? Rectangle.Empty; 211translatedBounds = BehaviorService?.ControlRectInAdornerWindow(_splitterPanel2!) ?? Rectangle.Empty;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
52bounds = Rectangle.Empty; 81bounds = Rectangle.Empty;
System\Windows\Forms\Design\TabOrder.cs (1)
343return Rectangle.Empty;
System\Windows\Forms\Design\TabPageDesigner.cs (1)
46Rectangle translatedBounds = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
234Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(currentPanel) ?? Rectangle.Empty; 298Rectangle controlBounds = BehaviorService?.ControlRectInAdornerWindow(dropDownItem.DropDown) ?? Rectangle.Empty; 328Rectangle controlBounds = BehaviorService?.ControlRectInAdornerWindow(associatedControl) ?? Rectangle.Empty;
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
34private Rectangle _dragBoxFromMouseDown = Rectangle.Empty; // Needed to Store the DRAGDROP Rect from the ToolStripItemBehavior. 41private Rectangle _boundsToInvalidate = Rectangle.Empty; // Bounds to Invalidate if a DropDownItem is Deleted 1075if (_toolStripAdornerWindowService is not null && _boundsToInvalidate != Rectangle.Empty)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
439Rectangle invalidateBounds = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
133Rectangle bounds = Rectangle.Empty; 143if (bounds != Rectangle.Empty)
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
26private Rectangle _lastKnownEditorBounds = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (7)
24internal Rectangle _dragBoxFromMouseDown = Rectangle.Empty; 88if (bSvc is not null && bounds != Rectangle.Empty) 155Rectangle bounds = Rectangle.Empty; 546Rectangle dragBox = Rectangle.Empty; 572if (dragBox != Rectangle.Empty && !dragBox.Contains(mouseLoc.X, mouseLoc.Y)) 996parentDesigner.DragBoxFromMouseDown = _dragBoxFromMouseDown = Rectangle.Empty; 1019ownerItemDesigner._dragBoxFromMouseDown = _dragBoxFromMouseDown = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
33internal Rectangle _dragBoxFromMouseDown = Rectangle.Empty; 513Rectangle r = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
60private Rectangle _dropDownSizeToInvalidate = Rectangle.Empty; 62private Rectangle _boundsToInvalidateOnRemove = Rectangle.Empty; 1918if (_toolStripAdornerWindowService is not null && _boundsToInvalidateOnRemove != Rectangle.Empty) 1923_boundsToInvalidateOnRemove = Rectangle.Empty;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
259_containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, Control, Component.Site, _behavior); 290_containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, Control, Component.Site, _behavior);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1787private Rectangle _hotRegion = Rectangle.Empty;
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\ByteViewerTests.cs (4)
427using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 468using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 513using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 543using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Drawing\Design\FontNameEditorTests.cs (1)
87e = new PaintValueEventArgs(_typeDescriptorContext, fontName, g, Rectangle.Empty);
ToolStripDesignerTests.cs (1)
52Assert.Equal(Rectangle.Empty, toolStripDesigner.DragBoxFromMouseDown);
System.Windows.Forms.Tests (526)
CheckedListBoxTests.cs (1)
405yield return new object[] { null, Rectangle.Empty, 0, DrawItemState.Default, Color.Red, Color.Blue };
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
14yield return new object[] { null, null, Rectangle.Empty }; 35AssertExtensions.Throws<ArgumentNullException>("graphics", () => new PaintValueEventArgs(null, new object(), null, Rectangle.Empty));
System\Drawing\Design\UITypeEditorTests.cs (3)
103yield return new object[] { new PaintValueEventArgs(null, null, graphics, Rectangle.Empty) }; 120yield return new object[] { null, graphics, Rectangle.Empty }; 145Assert.Throws<ArgumentNullException>("graphics", () => editor.PaintValue(new object(), null, Rectangle.Empty));
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (3)
21Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 616Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 682Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
183Assert.Equal(Rectangle.Empty, actualBounds);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
109yield return new object[] { new DataGridViewCellAccessibleObject(cell), Rectangle.Empty };
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (2)
79Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 91Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
43yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), Rectangle.Empty };
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (1)
130Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
32Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.Bounds); 43Assert.Equal(Rectangle.Empty, cell.AccessibilityObject.Bounds); 56Assert.NotEqual(Rectangle.Empty, cell.AccessibilityObject.Bounds);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (2)
36Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 56Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
180Rectangle expected = createControl ? form.Bounds : Rectangle.Empty;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 55Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
174itemAccessibleObject.Bounds.Should().Be(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (7)
755Assert.NotEqual(Rectangle.Empty, listView.Items[0].AccessibilityObject.Bounds); 758Assert.Equal(Rectangle.Empty, listView.Items[1].AccessibilityObject.Bounds); 762Assert.NotEqual(Rectangle.Empty, listView.Items[1].AccessibilityObject.Bounds); 765Assert.NotEqual(Rectangle.Empty, listView.Items[2].AccessibilityObject.Bounds); 776Assert.Equal(Rectangle.Empty, listView.Items[0].AccessibilityObject.Bounds); 777Assert.Equal(Rectangle.Empty, listView.Items[1].AccessibilityObject.Bounds); 778Assert.Equal(Rectangle.Empty, listView.Items[2].AccessibilityObject.Bounds);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (1)
236Assert.Equal(Rectangle.Empty, accessibleObject.GetSubItemBounds(0));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemListAccessibleObjectTests.cs (1)
31Assert.Equal(Rectangle.Empty, control.Items[0].AccessibilityObject.Bounds);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (18)
198Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 199Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 200Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 202Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 203Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 204Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 228Assert.NotEqual(Rectangle.Empty, subItemAccObj1.Bounds); 229Assert.NotEqual(Rectangle.Empty, subItemAccObj2.Bounds); 230Assert.NotEqual(Rectangle.Empty, subItemAccObj3.Bounds); 232Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 233Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 234Assert.NotEqual(Rectangle.Empty, subItemAccObjInGroup3.Bounds); 258Assert.Equal(Rectangle.Empty, subItemAccObj1.Bounds); 259Assert.Equal(Rectangle.Empty, subItemAccObj2.Bounds); 260Assert.Equal(Rectangle.Empty, subItemAccObj3.Bounds); 262Assert.Equal(Rectangle.Empty, subItemAccObjInGroup1.Bounds); 263Assert.Equal(Rectangle.Empty, subItemAccObjInGroup2.Bounds); 264Assert.Equal(Rectangle.Empty, subItemAccObjInGroup3.Bounds);
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
133Assert.Equal(Rectangle.Empty, panelAccessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (2)
74Assert.Equal(Rectangle.Empty, accessibleObject.BoundingRectangle); 103Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (1)
49Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (3)
25Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 37Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 48Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
25Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
50Assert.Equal(Rectangle.Empty.Size, accessibilityObject.Bounds.Size);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (3)
24Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 36Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 47Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
19Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 30Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 41Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (3)
19Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds); 30Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 41Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
19Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 30Assert.NotEqual(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
614accessibleObject.Bounds.Should().Be(Rectangle.Empty); 618accessibleObject.Bounds.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds); 55Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (1)
44Assert.Equal(Rectangle.Empty, accessibleObject.Bounds);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
597Assert.Equal(Rectangle.Empty, providerRectangle);
System\Windows\Forms\ContainerControlTests.cs (3)
41Assert.Equal(Rectangle.Empty, control.Bounds); 48Assert.Equal(Rectangle.Empty, control.ClientRectangle); 66Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ContentsResizedEventArgsTests.cs (1)
13yield return new object[] { Rectangle.Empty };
System\Windows\Forms\ControlPaintTests.cs (18)
542yield return new object[] { Rectangle.Empty, Color.Empty, style }; 587yield return new object[] { Rectangle.Empty, Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 688yield return new object[] { Rectangle.Empty }; 712yield return new object[] { Rectangle.Empty, style }; 739yield return new object[] { Rectangle.Empty, style, side }; 1137yield return new object[] { Rectangle.Empty }; 1165yield return new object[] { Rectangle.Empty }; 1187yield return new object[] { Rectangle.Empty, Color.Red, Color.Blue }; 1229yield return new object[] { Rectangle.Empty, primary, enabled }; 1263yield return new object[] { Rectangle.Empty, new Size(1, 1), Color.Red }; 1356yield return new object[] { Rectangle.Empty, primary }; 1680yield return new object[] { Rectangle.Empty, Color.Empty, style }; 1818yield return new object[] { active, Rectangle.Empty, Rectangle.Empty, Color.Red }; 1852yield return new object[] { Color.Red, Rectangle.Empty }; 1949yield return new object[] { s, SystemFonts.MenuFont, Color.Red, Rectangle.Empty, TextFormatFlags.VerticalCenter }; 1982yield return new object[] { Rectangle.Empty }; 2010yield return new object[] { Rectangle.Empty, Color.Red };
System\Windows\Forms\ControlTests.cs (9)
29Assert.Equal(Rectangle.Empty, control.Bounds); 37Assert.Equal(Rectangle.Empty, control.ClientRectangle); 53Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 118Assert.Equal(Rectangle.Empty, control.Bounds); 126Assert.Equal(Rectangle.Empty, control.ClientRectangle); 142Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 310Assert.Equal(Rectangle.Empty, control.Bounds); 317Assert.Equal(Rectangle.Empty, control.ClientRectangle); 334Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ControlTests.Handlers.cs (15)
2769yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2773yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2777yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(Rectangle.Empty) }; 2782yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2786yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2873yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2876yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2879yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), new InvalidateEventArgs(Rectangle.Empty), 0 }; 2883yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2886yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 4638using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4657using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4696using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4725using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4761using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\ControlTests.Methods.cs (87)
2396yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 2397yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 2398yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 2399yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 2402yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.All, Rectangle.Empty }; 2442yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.All, new Rectangle(0, 0, 4, 4) }; 2443yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.X, Rectangle.Empty }; 2444yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.Y, Rectangle.Empty }; 2445yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.Width, new Rectangle(0, 0, 4, 0) }; 2446yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.Height, new Rectangle(0, 0, 0, 4) }; 2569yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 2570yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 2571yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 2572yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 2658yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 2659yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 2660yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 2661yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 2708yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 2709yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 2710yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 2711yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 2758yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 2759yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 2760yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 2761yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 3199yield return new object[] { opaque, Rectangle.Empty }; 3230yield return new object[] { opaque, Rectangle.Empty, new Rectangle(0, 0, 10, 20) }; 3336yield return new object[] { opaque, Rectangle.Empty, invalidateChildren }; 3370yield return new object[] { opaque, Rectangle.Empty, invalidateChildren, new Rectangle(0, 0, 10, 20) }; 4494yield return new object[] { Rectangle.Empty }; 4527yield return new object[] { true, Color.Empty, Rectangle.Empty }; 4531yield return new object[] { true, Color.Red, Rectangle.Empty }; 4535yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), Rectangle.Empty }; 4540yield return new object[] { false, Color.Empty, Rectangle.Empty }; 4544yield return new object[] { false, Color.Red, Rectangle.Empty }; 4631yield return new object[] { true, Color.Empty, Rectangle.Empty, 0 }; 4634yield return new object[] { true, Color.Red, Rectangle.Empty, 0 }; 4637yield return new object[] { true, Color.FromArgb(200, 50, 100, 150), Rectangle.Empty, 0 }; 4641yield return new object[] { false, Color.Empty, Rectangle.Empty, 0 }; 4644yield return new object[] { false, Color.Red, Rectangle.Empty, 0 }; 10340Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10341Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10349Assert.Equal(Rectangle.Empty, control.Bounds); 10359Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10360Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10368Assert.Equal(Rectangle.Empty, control.Bounds); 10514Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10515Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10523Assert.Equal(Rectangle.Empty, control.Bounds); 10533Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10534Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10542Assert.Equal(Rectangle.Empty, control.Bounds); 10606Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10607Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10615Assert.Equal(Rectangle.Empty, control.Bounds); 10625Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10626Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10634Assert.Equal(Rectangle.Empty, control.Bounds); 10697Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10698Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10706Assert.Equal(Rectangle.Empty, control.Bounds); 10719Assert.Equal(Rectangle.Empty, control.ClientRectangle); 10720Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 10728Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\CursorTests.cs (1)
364yield return new object[] { Rectangle.Empty };
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (34)
12yield return new object[] { Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All }; 46Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewCellPaintingEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 53Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewCellPaintingEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All)); 62Assert.Throws<ArgumentNullException>("cellStyle", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null, DataGridViewPaintParts.All)); 72Assert.Throws<ArgumentException>("paintParts", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, paintParts)); 84DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All); 95DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 108DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 121DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 134DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All); 145DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 158DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 171DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 184DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All); 195DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 208DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All); 221DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
System\Windows\Forms\DataGridViewCellTests.cs (21)
21Assert.Equal(Rectangle.Empty, cell.ContentBounds); 57Assert.Equal(Rectangle.Empty, cell.ContentBounds); 66Assert.Equal(Rectangle.Empty, cell.ContentBounds); 75Assert.Equal(Rectangle.Empty, cell.ContentBounds); 89Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 689Assert.Equal(Rectangle.Empty, cell.ErrorIconBounds); 3339Assert.Equal(Rectangle.Empty, cell.ContentBounds); 3376Assert.Equal(Rectangle.Empty, cell.ContentBounds); 3578Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3591Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3604Assert.Equal(Rectangle.Empty, cell.GetContentBounds(rowIndex)); 3618Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 3632Assert.Equal(Rectangle.Empty, cell.GetContentBounds(0)); 3669Assert.Equal(Rectangle.Empty, cell.GetContentBounds(null, cellStyle, rowIndex)); 3679Assert.Equal(Rectangle.Empty, cell.GetContentBounds(graphics, cellStyle, rowIndex)); 3821Assert.Equal(Rectangle.Empty, cell.GetErrorIconBounds(null, cellStyle, rowIndex)); 3831Assert.Equal(Rectangle.Empty, cell.GetErrorIconBounds(graphics, cellStyle, rowIndex)); 6011cell.Paint(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All); 6020cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (7)
20Assert.Equal(Rectangle.Empty, cell.ContentBounds); 2041Assert.Equal(Rectangle.Empty, cell.ContentBounds); 2078Assert.Equal(Rectangle.Empty, cell.ContentBounds); 2127Assert.Equal(Rectangle.Empty, cell.ContentBounds); 2164Assert.Equal(Rectangle.Empty, cell.ContentBounds); 4620Assert.Throws<ArgumentNullException>("cellStyle", () => cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All));
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (33)
12yield return new object[] { Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false }; 42Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPostPaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 49Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPostPaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 58Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPostPaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false)); 63yield return new object[] { Rectangle.Empty }; 75DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false) 89DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 102DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 113DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 126DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 137DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 150DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 161DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 174DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 185DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 198DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 211DataGridViewRowPostPaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (37)
15yield return new object[] { new DataGridView(), graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false }; 43Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPrePaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 50Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPrePaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false)); 59Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPrePaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false)); 64yield return new object[] { Rectangle.Empty }; 76DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false) 91DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false) 105DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 116DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 129DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 140DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 153DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 164DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 177DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 188DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 201DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 212DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 225DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false); 238DataGridViewRowPrePaintEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false);
System\Windows\Forms\DataGridViewRowTests.cs (29)
4184yield return new object[] { Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), false }; 4185yield return new object[] { Rectangle.Empty, Rectangle.Empty, 0, DataGridViewElementStates.None, new DataGridViewCellStyle(), false }; 4568yield return new object[] { Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true }; 4935Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4940Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false)); 4955Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, Rectangle.Empty, 1, DataGridViewElementStates.None, true, true)); 4969Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true)); 4990Assert.Throws<InvalidOperationException>(() => row.Paint(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true)); 5014yield return new object[] { Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All }; 5250Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5264Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5299Assert.Throws<InvalidOperationException>(() => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5337Assert.Throws<ArgumentException>(() => row.PaintCells(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, paintParts)); 5571Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5586Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5623Assert.Throws<InvalidOperationException>(() => row.PaintHeader(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All)); 5675Assert.Throws<InvalidEnumArgumentException>("paintParts", () => row.PaintHeader(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, paintParts));
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
119Assert.Equal(Rectangle.Empty, control.MaximizedBounds);
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
13yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, SystemColors.HighlightText, SystemColors.Highlight }; 38yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, Color.Empty, Color.Empty };
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
13yield return new object[] { Rectangle.Empty, -2, null, (DrawItemState)(ListViewItemStates.Checked - 1), Color.Empty, Color.Empty, null };
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (4)
13yield return new object[] { Rectangle.Empty, -2, ListViewItemStates.Checked - 1 }; 75yield return new object[] { new ListViewItem(), Rectangle.Empty, ListViewItemStates.Default }; 76yield return new object[] { new ListViewItem(), Rectangle.Empty, ListViewItemStates.Focused }; 77yield return new object[] { new ListViewItem(), Rectangle.Empty, ListViewItemStates.Checked };
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (2)
12yield return new object[] { Rectangle.Empty, null, new ListViewItem.ListViewSubItem(), -2, -2, null, ListViewItemStates.Checked - 1 }; 13yield return new object[] { Rectangle.Empty, new ListViewItem(), new ListViewItem.ListViewSubItem(), -2, -2, null, ListViewItemStates.Checked - 1 };
System\Windows\Forms\DrawToolTipEventArgsTests.cs (1)
13yield return new object[] { null, null, Rectangle.Empty, null, Color.Empty, Color.Empty, null };
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (1)
13yield return new object[] { null, Rectangle.Empty, TreeNodeStates.Checked - 1 };
System\Windows\Forms\FormTests.cs (1)
121Assert.Equal(Rectangle.Empty, control.MaximizedBounds);
System\Windows\Forms\GroupBoxTests.cs (2)
1851using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 1889using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\HtmlElementTests.cs (3)
114Assert.Equal(Rectangle.Empty, result); 806Assert.NotEqual(Rectangle.Empty, result); 1155Assert.NotEqual(Rectangle.Empty, result);
System\Windows\Forms\InvalidateEventArgsTests.cs (1)
13yield return new object[] { Rectangle.Empty };
System\Windows\Forms\ListBoxTests.cs (2)
5384yield return new object[] { default(RECT), Rectangle.Empty }; 5428Assert.Equal(Rectangle.Empty, control.GetItemRectangle(0));
System\Windows\Forms\ListControlTests.cs (3)
33Assert.Equal(Rectangle.Empty, control.Bounds); 41Assert.Equal(Rectangle.Empty, control.ClientRectangle); 60Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ListViewInsertionMarkTests.cs (3)
187Assert.Equal(Rectangle.Empty, insertionMark.Bounds); 205Assert.Equal(Rectangle.Empty, insertionMark.Bounds); 215yield return new object[] { default(RECT), Rectangle.Empty };
System\Windows\Forms\ListViewItemTests.cs (22)
17Assert.Equal(Rectangle.Empty, item.Bounds); 56Assert.Equal(Rectangle.Empty, item.Bounds); 94Assert.Equal(Rectangle.Empty, item.Bounds); 132Assert.Equal(Rectangle.Empty, item.Bounds); 170Assert.Equal(Rectangle.Empty, item.Bounds); 207Assert.Equal(Rectangle.Empty, item.Bounds); 244Assert.Equal(Rectangle.Empty, item.Bounds); 282Assert.Equal(Rectangle.Empty, item.Bounds); 320Assert.Equal(Rectangle.Empty, item.Bounds); 357Assert.Equal(Rectangle.Empty, item.Bounds); 395Assert.Equal(Rectangle.Empty, item.Bounds); 433Assert.Equal(Rectangle.Empty, item.Bounds); 470Assert.Equal(Rectangle.Empty, item.Bounds); 508Assert.Equal(Rectangle.Empty, item.Bounds); 546Assert.Equal(Rectangle.Empty, item.Bounds); 584Assert.Equal(Rectangle.Empty, item.Bounds); 621Assert.Equal(Rectangle.Empty, item.Bounds); 659Assert.Equal(Rectangle.Empty, item.Bounds); 697Assert.Equal(Rectangle.Empty, item.Bounds); 734Assert.Equal(Rectangle.Empty, item.Bounds); 773Assert.Equal(Rectangle.Empty, item.Bounds); 803Assert.Equal(Rectangle.Empty, item.Bounds);
System\Windows\Forms\ListViewSubItemTests.cs (3)
18Assert.Equal(Rectangle.Empty, subItem.Bounds); 44Assert.Equal(Rectangle.Empty, subItem.Bounds); 70Assert.Equal(Rectangle.Empty, subItem.Bounds);
System\Windows\Forms\ListViewTests.cs (1)
4143yield return new object[] { default(RECT), Rectangle.Empty };
System\Windows\Forms\MdiClientTests.cs (15)
31Assert.Equal(Rectangle.Empty, control.Bounds); 37Assert.Equal(Rectangle.Empty, control.ClientRectangle); 46Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 774Assert.Equal(Rectangle.Empty, control.ClientRectangle); 775Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 783Assert.Equal(Rectangle.Empty, control.Bounds); 801Assert.Equal(Rectangle.Empty, control.ClientRectangle); 802Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 810Assert.Equal(Rectangle.Empty, control.Bounds); 926Assert.Equal(Rectangle.Empty, control.ClientRectangle); 927Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 935Assert.Equal(Rectangle.Empty, control.Bounds); 953Assert.Equal(Rectangle.Empty, control.ClientRectangle); 954Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 962Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\MdiControlStripTests.cs (1)
87Assert.Equal(Rectangle.Empty, mdiControlStrip.GripRectangle);
System\Windows\Forms\MenuStripTests.cs (1)
85Assert.Equal(Rectangle.Empty, control.GripRectangle);
System\Windows\Forms\PaintEventArgsTests.cs (1)
13yield return new object[] { Rectangle.Empty };
System\Windows\Forms\RichTextBoxTests.cs (5)
10322yield return new object[] { BorderStyle.Fixed3D, Rectangle.Empty, new Rectangle(0, 0, 0, 1) }; 10323yield return new object[] { BorderStyle.FixedSingle, Rectangle.Empty, Rectangle.Empty }; 10324yield return new object[] { BorderStyle.None, Rectangle.Empty, Rectangle.Empty };
System\Windows\Forms\ScrollableControlTests.cs (3)
35Assert.Equal(Rectangle.Empty, control.Bounds); 42Assert.Equal(Rectangle.Empty, control.ClientRectangle); 59Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ScrollBarTests.cs (19)
30Assert.Equal(Rectangle.Empty, control.Bounds); 37Assert.Equal(Rectangle.Empty, control.ClientRectangle); 54Assert.Equal(Rectangle.Empty, control.DisplayRectangle); 1768yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 1769yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 1770yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 1771yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty }; 1816yield return new object[] { Rectangle.Empty, new Size(0, 0), specified, Rectangle.Empty }; 1817yield return new object[] { Rectangle.Empty, new Size(1, 1), specified, Rectangle.Empty }; 1818yield return new object[] { Rectangle.Empty, new Size(2, 3), specified, Rectangle.Empty }; 1819yield return new object[] { Rectangle.Empty, new Size(-2, -3), specified, Rectangle.Empty };
System\Windows\Forms\StatusStripTests.cs (10)
85Assert.Equal(Rectangle.Empty, control.GripRectangle); 624yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 625yield return new object[] { false, layoutStyle, RightToLeft.No, Rectangle.Empty }; 626yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 650yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 651yield return new object[] { false, layoutStyle, RightToLeft.No, Rectangle.Empty }; 652yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty }; 677yield return new object[] { false, layoutStyle, RightToLeft.Yes, Rectangle.Empty }; 678yield return new object[] { false, layoutStyle, RightToLeft.No, Rectangle.Empty }; 679yield return new object[] { false, layoutStyle, RightToLeft.Inherit, Rectangle.Empty };
System\Windows\Forms\TabControlTests.cs (1)
3712yield return new object[] { default(RECT), Rectangle.Empty };
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (2)
13yield return new object[] { Rectangle.Empty, Rectangle.Empty, -2, -2 };
System\Windows\Forms\TableLayoutPanelTests.cs (2)
1210yield return new object[] { new TableLayoutCellPaintEventArgs(graphics, Rectangle.Empty, Rectangle.Empty, 0, 0) };
System\Windows\Forms\TabPageTests.cs (1)
5047Assert.Equal(Rectangle.Empty, actual);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
511Assert.Equal(Rectangle.Empty, providerRectangle);
System\Windows\Forms\TextRendererTests.cs (4)
162yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red }; 194yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue }; 230yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, TextFormatFlags.Default, }; 270yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, };
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (3)
14Assert.Throws<ArgumentNullException>(() => new ToolStripArrowRenderEventArgs(null, toolStripButton, Rectangle.Empty, Color.Empty, ArrowDirection.Up)); 21yield return new object[] { graphics, null, Rectangle.Empty, Color.Empty, ArrowDirection.Down + 1 }; 40yield return new object[] { Rectangle.Empty };
System\Windows\Forms\ToolStripDropDownTests.cs (1)
90Assert.Equal(Rectangle.Empty, control.GripRectangle);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (1)
24Assert.Throws<ArgumentNullException>(() => new ToolStripItemImageRenderEventArgs(g, toolStripItem, Rectangle.Empty));
System\Windows\Forms\ToolStripItemTests.cs (1)
10471yield return new object[] { Rectangle.Empty };
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
12yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.Top - 1 }; 37yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, ContentAlignment.TopLeft - 1, TextFormatFlags.Default | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripPanelTests.cs (3)
37Assert.Equal(Rectangle.Empty, control.Bounds); 44Assert.Equal(Rectangle.Empty, control.ClientRectangle); 62Assert.Equal(Rectangle.Empty, control.DisplayRectangle);
System\Windows\Forms\ToolStripRendererTests.cs (5)
30yield return new object[] { null, Rectangle.Empty, Color.Empty, arrowDirection }; 34yield return new object[] { null, Rectangle.Empty, Color.Empty, ArrowDirection.Left - 1 }; 35yield return new object[] { null, Rectangle.Empty, Color.Empty, ArrowDirection.Up + 1 }; 294yield return new object[] { new SubToolStripItem(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.Left }; 299yield return new object[] { new SubToolStripItem(), "Text", Rectangle.Empty, Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
95Assert.Equal(Rectangle.Empty, e.ConnectedArea);
System\Windows\Forms\ToolStripSplitButtonTests.cs (1)
333_toolStripSplitButton.SplitterBounds.Should().Be(Rectangle.Empty);
System\Windows\Forms\ToolStripTests.cs (2)
6233using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 6262using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
103Rectangle expectedBounds = Rectangle.Empty;
System\Windows\Forms\TreeNodeTests.cs (10)
18Assert.Equal(Rectangle.Empty, node.Bounds); 58Assert.Equal(Rectangle.Empty, node.Bounds); 106Assert.Equal(Rectangle.Empty, node.Bounds); 149Assert.Equal(Rectangle.Empty, node.Bounds); 197Assert.Equal(Rectangle.Empty, node.Bounds); 491yield return new object[] { default(RECT), Rectangle.Empty }; 536Assert.Equal(Rectangle.Empty, node.Bounds); 548Assert.Equal(Rectangle.Empty, node.Bounds); 4704treeNode.RowBounds.Should().Be(Rectangle.Empty); 4708treeNode.RowBounds.Should().NotBe(Rectangle.Empty);
System\Windows\Forms\TreeViewTests.cs (1)
5668yield return new object[] { new DrawTreeNodeEventArgs(graphics, null, Rectangle.Empty, TreeNodeStates.Checked) };
System\Windows\Forms\UpDownBaseTests.cs (2)
2247using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 2283using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
116new(graphics, Rectangle.Empty)
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (3)
728_dragBoxFromMouseDown = Rectangle.Empty; 735_dragBoxFromMouseDown = Rectangle.Empty; 745if (_dragBoxFromMouseDown != Rectangle.Empty &&
ListBoxItemAccessibleObjestTests.cs (2)
21boundsBeforeHandleCreation.Should().Be(Rectangle.Empty); 29boundsAfterHandleCreation.Should().NotBe(Rectangle.Empty);