462 references to Empty
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
192Point.Empty,
System.Drawing.Common.Tests (41)
System\Drawing\Drawing2D\MatrixTests.cs (2)
445if (point == Point.Empty) 459if (point == Point.Empty)
System\Drawing\Graphics_DrawBezierTests.cs (12)
66AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, Point.Empty, Point.Empty, Point.Empty, Point.Empty)); 79AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawBezier(pen, Point.Empty, Point.Empty, Point.Empty, Point.Empty)); 93Assert.Throws<InvalidOperationException>(() => graphics.DrawBezier(pen, Point.Empty, Point.Empty, Point.Empty, Point.Empty));
System\Drawing\Graphics_DrawLineTests.cs (8)
43AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, Point.Empty, Point.Empty)); 57AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawLine(pen, Point.Empty, Point.Empty)); 72Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, Point.Empty, Point.Empty)); 91AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawLine(pen, Point.Empty, Point.Empty));
System\Drawing\GraphicsTests.cs (17)
252VerifyGraphics(graphics, new Rectangle(Point.Empty, image.Size)); 323targetGraphics.DrawImage(image, Point.Empty); 879Assert.Throws<InvalidOperationException>(() => graphics.RenderingOrigin = Point.Empty); 895AssertExtensions.Throws<ArgumentException>(null, () => graphics.RenderingOrigin = Point.Empty); 1622graphics.CopyFromScreen(Point.Empty, Point.Empty, new Size(1, 1), copyPixelOperation); 1662Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty)); 1663Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.DestinationInvert)); 1680AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty)); 1681AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.MergeCopy)); 1894Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [Point.Empty])); 1910AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [Point.Empty])); 2813Assert.Equal(Point.Empty, graphics.RenderingOrigin);
System\Drawing\PenTests.cs (1)
253using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);
System\Drawing\RegionTests.cs (1)
1360yield return new object[] { new Region(), Point.Empty, true };
System.Windows.Forms (105)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (2)
110return Point.Empty; 364return Point.Empty;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
121private static Point s_logPixels = Point.Empty;
System\Windows\Forms\Control.cs (6)
654get => Properties.GetValueOrDefault(s_autoScrollOffsetProperty, Point.Empty); 655set => Properties.AddOrRemoveValue(s_autoScrollOffsetProperty, value, defaultValue: Point.Empty); 8075PaintBackground(e, rectangle, BackColor, Point.Empty); 8102if (this is ScrollableControl scrollControl && scrollLocation != Point.Empty) 8740PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty, Size)); 8755Point clientOffset = PointToScreen(Point.Empty);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
158: Point.Empty; 165return Point.Empty; 439return Point.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
273private Point _ptCurrentCellCache = Point.Empty;
System\Windows\Forms\Controls\Labels\Label.cs (1)
1357ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6855Point startingPoint = Point.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2398Point newPoint = Point.Empty; 2413Point newPoint = Point.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
96private Point _rowSelectPos = Point.Empty; // the position that we clicked on a row to test for double clicks 2604_rowSelectPos = Point.Empty; 3452_rowSelectPos = Point.Empty; 5267Point tipPt = Point.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
26private Point _dragStart = Point.Empty; // the point at which the drag started to compute the delta 498_dragStart = Point.Empty;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2270return Point.Empty;
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
31private Point _anchor = Point.Empty; 940_anchor = Point.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1589return Point.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
183public override Point PointToScreen(Point pt) => Owner is not null ? Owner.PointToScreen(pt) : Point.Empty; 307: Point.Empty; 314return Point.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1014Point offset = Point.Empty; 1023Rectangle dropDownBounds = new(Point.Empty, GetSuggestedSize());
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (6)
141Rectangle ownerItemBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size); 211return Point.Empty; 302Point offset = Point.Empty; 335Point itemScreenLocation = TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 379Rectangle dropDownBounds = new(Point.Empty, DropDown.GetSuggestedSize()); 384Rectangle itemScreenBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
348Point nextPoint = Point.Empty; 456_textRectangle.Y = LayoutUtils.VAlign(_textRectangle.Size, new Rectangle(Point.Empty, _maxItemSize), ContentAlignment.MiddleCenter).Y;
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
12private Point _startLocation = Point.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (8)
135Rectangle bounds = new(Point.Empty, e.Item.Size); 187Rectangle bounds = new(Point.Empty, menuItem.Size); 208DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 258Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 287Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 350Rectangle bounds = new(Point.Empty, e.Item.Size); 410Rectangle bounds = new(Point.Empty, e.Item.Size); 442Rectangle bounds = new(Point.Empty, e.Item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
556client.Location = Point.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
99Rectangle bounds = new(Point.Empty, _ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
711ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
711Join(toolStripToDrag, Point.Empty);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
53Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (21)
230Rectangle bounds = new(Point.Empty, item.Size); 248RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 266Rectangle bounds = new(Point.Empty, item.Size); 347Rectangle bounds = new(Point.Empty, item?.Size ?? Size.Empty); 417Rectangle bounds = new(Point.Empty, toolStrip.Size); 546Rectangle bounds = new(Point.Empty, item.Size); 769e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 846Rectangle bounds = new(Point.Empty, toolStrip.Size); 853Point topLeft = Point.Empty; 1108Rectangle bounds = new(Point.Empty, item.Size); 1134g.FillRectangle(brush, new Rectangle(Point.Empty, control.Size)); 1141Rectangle gradientBounds = new(Point.Empty, parent.Size); 1150g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1155Rectangle gradientBounds = new(Point.Empty, control.Size); 1174Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1183Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1195Rectangle bounds = new(Point.Empty, toolStripDropDown.Size); 1217Rectangle overflowBoundsFill = new(Point.Empty, e.Item.Size); 1338Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1344Point topLeft = Point.Empty; 1567Rectangle bounds = new(Point.Empty, item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
797e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 882TextRenderer.DrawText(textGraphics, text, textFont, new Rectangle(Point.Empty, textSize), textColor, textFormat);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (2)
16: this(g, toolStrip, new Rectangle(Point.Empty, toolStrip.OrThrowIfNull().Size), Color.Empty) 109Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
301Rectangle dropDownButtonBounds = new(Point.Empty, new Size(Math.Min(Width, DropDownButtonWidth), Height)); 307Rectangle splitButtonButtonBounds = new(Point.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (9)
279Rectangle bounds = new(Point.Empty, e.GripBounds.Size); 388vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 394DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 421Rectangle bounds = new(Point.Empty, item.Size); 444Rectangle fillRect = new(Point.Empty, item.Size); 490RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 530Rectangle bounds = new(Point.Empty, splitButton.Size); 656vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 668RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
837Rectangle clientArea = new(Point.Empty, ClientSize);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
55private Point _anchor = Point.Empty; 2154_anchor = Point.Empty;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
65if (ptScroll != Point.Empty) 143if (ptScroll != Point.Empty)
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (1)
425pt = Point.Empty,
System\Windows\Forms\Panels\Panel.cs (1)
234ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
48private Point _screenDPI = Point.Empty; 635Point lastImageSize = Point.Empty;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
432if (scrollOffset != Point.Empty) 476Rectangle partOfImageToDraw = new(Point.Empty, imageRect.Size);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1990if (tipInfo.Position != Point.Empty) 2180if (((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0) && tipInfo.Position == Point.Empty) 2202else if ((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0 && tipInfo.Position != Point.Empty) 2264tipInfo.Position = Point.Empty;
System.Windows.Forms.Design (72)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
344Rectangle editorBounds = new(Point.Empty, EditRegionSize); 368Rectangle editorBounds = new(Point.Empty, EditRegionSize);
System\ComponentModel\Design\DesignerActionUI.cs (1)
639return Point.Empty;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
142return Point.Empty;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
269return Point.Empty;
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (4)
60_initialDragPoint = Point.Empty; 172if (InitialDragPoint == Point.Empty) 195InitialDragPoint = Point.Empty; 258InitialDragPoint = Point.Empty;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
132Point topRight = Point.Empty;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
545_dragOffset = _behaviorService.MapAdornerWindowPoint(rootControl.Handle, Point.Empty); 688Point offset = Point.Empty; 1050return Point.Empty;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
114_lastSnapOffset = Point.Empty; 144Point offset = Point.Empty; 887_parentLocation = bhvSvc.MapAdornerWindowPoint(parentControl.Handle, Point.Empty);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
60_lastSnapOffset = Point.Empty; 480if (_lastMouseAbs != Point.Empty) 915_lastSnapOffset = Point.Empty;
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (2)
44_lastMouseLoc = Point.Empty; 52_lastMouseLoc = Point.Empty;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (3)
39_lastOffset = Point.Empty; 88_lastOffset = Point.Empty; 111Point offset = Point.Empty;
System\Windows\Forms\Design\CommandSet.cs (6)
551return Point.Empty; 993Point loc = Point.Empty; 2558Point curLoc = Point.Empty, lastLoc = Point.Empty; 2559Point primaryLoc = Point.Empty; 2623curLoc = Point.Empty;
System\Windows\Forms\Design\ComponentTray.cs (2)
29private Point _whiteSpace = Point.Empty; // space to leave between components. 59private Point _autoScrollPosBeforeDragging = Point.Empty; // Used to return the correct scroll pos. after a drag
System\Windows\Forms\Design\ControlDesigner.cs (1)
2119Rectangle clientAreaScreenBounds = new(Control.PointToScreen(Point.Empty), Control.ClientSize);
System\Windows\Forms\Design\DesignerUtils.cs (1)
569if (e.Offset != Point.Empty)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (9)
48private Point _oldPoint1 = Point.Empty; 53private Point _oldPoint2 = Point.Empty; 193Point offset = Control.PointToScreen(Point.Empty); 430=> ReDrawIBar(Point.Empty, Point.Empty); 447if (point1 != Point.Empty) 456if (point1 != _oldPoint1 && point2 != _oldPoint2 && _oldPoint1 != Point.Empty) 754_lastMouseLocation = Point.Empty; 803Point controlOffset = Control.PointToScreen(Point.Empty);
System\Windows\Forms\Design\OleDragDropHandler.cs (11)
31private Point _localDragOffset = Point.Empty; 34private Point _dragBase = Point.Empty; 330return Point.Empty; 335return Point.Empty; 464_localDragOffset = Point.Empty; 570DrawDragFrames(_dragComps, _localDragOffset, _localDragEffect, Point.Empty, drawAtNewOffset: false); 573_localDragOffset = Point.Empty; 576_dragBase = Point.Empty; 652Point.Empty, 931Point.Empty, 936_dragBase = Point.Empty;
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
434Point location = Point.Empty; 2142Point parentLoc = Point.Empty; 2154Point controlLoc = Point.Empty; 2182Point newLoc = Point.Empty;
System\Windows\Forms\Design\SelectionUIService.cs (1)
41private Point _lastMoveScreenCoord = Point.Empty;
System\Windows\Forms\Design\StatusCommandUI.cs (1)
55if (location != Point.Empty)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
107return Point.Empty;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
23internal static Point s_lastCursorPosition = Point.Empty; // remembers last cursorPosition;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
61if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 227SetParentDesignerValuesForDragDrop(glyphItem, false, Point.Empty); 627SetParentDesignerValuesForDragDrop(glyphItem, false, Point.Empty); 900if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 954SetParentDesignerValuesForDragDrop(item, false, Point.Empty);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1314Point newPoint = Point.Empty;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
276_behavior?.OnMouseDown(_containerSelectorGlyph, MouseButtons.Left, Point.Empty);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1871Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1886Rectangle bounds = new(Point.Empty, item.Size); 1982Rectangle bounds = new(Point.Empty, splitButton.Size);
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
26Assert.Equal(Point.Empty, control.AutoScrollPosition); 96Assert.Equal(Point.Empty, control.Location);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
617providerMock.Setup(p => p.PointToScreen(It.IsAny<Point>())).Returns(Point.Empty);
System.Windows.Forms.Tests (238)
MaskedTextBoxTests.cs (1)
732position.Should().NotBe(Point.Empty);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
202Assert.Equal(createControl, actual.Location != Point.Empty);
System\Windows\Forms\AxHostTests.cs (2)
88Assert.Equal(Point.Empty, control.Location); 182Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ButtonBaseTests.cs (1)
86Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ButtonTests.cs (1)
89Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\CheckBoxTests.cs (1)
90Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
470Assert.Equal(Point.Empty, actualPoint); 547Assert.Equal(Point.Empty, actualPoint); 902yield return new object[] { ComboBoxStyle.DropDown, Point.Empty }; 904yield return new object[] { ComboBoxStyle.Simple, Point.Empty };
System\Windows\Forms\ComboBoxTests.cs (1)
98Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ContainerControlTests.cs (2)
32Assert.Equal(Point.Empty, control.AutoScrollPosition); 94Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ControlPaintTests.cs (2)
1707yield return new object[] { Point.Empty, Point.Empty, Color.Red };
System\Windows\Forms\ControlTests.cs (3)
72Assert.Equal(Point.Empty, control.Location); 161Assert.Equal(Point.Empty, control.Location); 353Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ControlTests.Methods.cs (18)
9783Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9784Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9786Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 9793Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9794Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9796Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 9817Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9818Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9826Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9833Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9834Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9842Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9865Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9866Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9874Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9884Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 9885Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 9893Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds);
System\Windows\Forms\ControlTests.Properties.cs (20)
3338Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3339Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3341Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 3348Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3349Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3351Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 3382Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3383Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3391Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3398Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3399Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3407Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3445Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3446Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3454Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3464Assert.Equal(new Rectangle(Point.Empty, value), control.ClientRectangle); 3465Assert.Equal(new Rectangle(Point.Empty, value), control.DisplayRectangle); 3473Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 7589Assert.Equal(Point.Empty, control.Location); 7613Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\CursorTests.cs (5)
58yield return new object[] { Path.Combine("bitmaps", "cursor.cur"), Point.Empty }; 398Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.Size))); 408Assert.Throws<ArgumentException>(() => cursor.Draw(graphics, new Rectangle(Point.Empty, cursor.Size))); 435Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.Size))); 445Assert.Throws<ArgumentException>(() => cursor.DrawStretched(graphics, new Rectangle(Point.Empty, cursor.Size)));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
88Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\DataObjectTests.cs (2)
2528pDropFiles->pt.Should().Be(Point.Empty); 2569pDropFiles->pt.Should().Be(Point.Empty);
System\Windows\Forms\DateTimePickerTests.cs (1)
89Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (2)
39Assert.Equal(Point.Empty, control.AutoScrollPosition); 114Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
27Assert.Equal(Point.Empty, control.AutoScrollPosition); 95Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\DomainUpDownTests.cs (2)
41_sub.AutoScrollPosition.Should().Be(Point.Empty); 117_sub.Location.Should().Be(Point.Empty);
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
26Assert.Equal(Point.Empty, control.AutoScrollPosition); 88Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\FormTests.cs (2)
37Assert.Equal(Point.Empty, control.AutoScrollPosition); 116Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\GroupBoxTests.cs (1)
76Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\Help\HelpTests.cs (1)
13Help.ShowPopup(null, "Popup", Point.Empty);
System\Windows\Forms\HelpEventArgsTests.cs (1)
13yield return new object[] { Point.Empty };
System\Windows\Forms\HScrollBarTests.cs (1)
84Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\HtmlDocumentTests.cs (1)
1751Assert.Equal("BODY", document.GetElementFromPoint(Point.Empty).TagName);
System\Windows\Forms\ImageListTests.cs (4)
917yield return new object[] { Point.Empty }; 1024Assert.Throws<NullReferenceException>(() => list.Draw(null, Point.Empty, 0)); 1039Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, Point.Empty, index)); 1055Assert.Throws<ArgumentOutOfRangeException>("index", () => list.Draw(graphics, Point.Empty, index));
System\Windows\Forms\LabelTests.cs (1)
81Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ListBoxTests.cs (1)
92Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ListControlTests.cs (1)
82Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ListViewTests.cs (1)
108Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\MdiClientTests.cs (3)
60Assert.Equal(Point.Empty, control.Location); 452Assert.Equal(Point.Empty, control.Location); 476Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\MdiControlStripTests.cs (2)
30Assert.Equal(Point.Empty, mdiControlStrip.AutoScrollPosition); 108Assert.Equal(Point.Empty, mdiControlStrip.Location);
System\Windows\Forms\MenuStripTests.cs (2)
28Assert.Equal(Point.Empty, control.AutoScrollPosition); 106Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\MonthCalendarTests.cs (13)
93Assert.Equal(Point.Empty, control.Location); 2527Assert.Equal(new Rectangle(Point.Empty, size), control.ClientRectangle); 2528Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2530Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2536Assert.Equal(new Rectangle(Point.Empty, size), control.ClientRectangle); 2537Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2539Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2560Assert.Equal(new Rectangle(Point.Empty, size), control.ClientRectangle); 2561Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2563Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2572Assert.Equal(new Rectangle(Point.Empty, size), control.ClientRectangle); 2573Assert.Equal(new Rectangle(Point.Empty, size), control.DisplayRectangle); 2575Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds);
System\Windows\Forms\PanelTests.cs (2)
27Assert.Equal(Point.Empty, control.AutoScrollPosition); 88Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\PictureBoxTests.cs (1)
83Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ProgressBarTests.cs (1)
73Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
50SelectedObject = Point.Empty
System\Windows\Forms\PropertyGridTests.cs (3)
37Assert.Equal(Point.Empty, control.AutoScrollPosition); 71Assert.NotEqual(Point.Empty, control.ContextMenuDefaultLocation); 123Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\RadioButtonTests.cs (1)
89Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\RichTextBoxTests.cs (1)
95Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ScrollableControlTests.cs (12)
28Assert.Equal(Point.Empty, control.AutoScrollPosition); 87Assert.Equal(Point.Empty, control.Location); 479Assert.Equal(Point.Empty, control.AutoScrollPosition); 484Assert.Equal(Point.Empty, control.AutoScrollPosition); 502Assert.Equal(Point.Empty, control.AutoScrollPosition); 510Assert.Equal(Point.Empty, control.AutoScrollPosition); 526Assert.Equal(Point.Empty, control.AutoScrollPosition); 531Assert.Equal(Point.Empty, control.AutoScrollPosition); 544Assert.Equal(Point.Empty, control.AutoScrollPosition); 549Assert.Equal(Point.Empty, control.AutoScrollPosition); 2336Assert.Equal(Point.Empty, control.AutoScrollPosition); 2404Assert.Equal(Point.Empty, control.AutoScrollPosition);
System\Windows\Forms\ScrollBarTests.cs (1)
74Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\SearchForVirtualItemEventArgsTests.cs (1)
13yield return new object[] { true, false, true, null, Point.Empty, SearchDirectionHint.Down + 1, -2 };
System\Windows\Forms\SplitterPanelTests.cs (2)
33Assert.Equal(Point.Empty, control.AutoScrollPosition); 78Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\SplitterTests.cs (1)
74Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\StatusStripTests.cs (2)
28Assert.Equal(Point.Empty, control.AutoScrollPosition); 106Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\TabControlTests.cs (1)
79Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\TableLayoutPanelTests.cs (2)
28Assert.Equal(Point.Empty, control.AutoScrollPosition); 96Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\TabPageTests.cs (8)
31Assert.Equal(Point.Empty, control.AutoScrollPosition); 93Assert.Equal(Point.Empty, control.Location); 140Assert.Equal(Point.Empty, control.AutoScrollPosition); 202Assert.Equal(Point.Empty, control.Location); 2384control.Location = Point.Empty; 2385Assert.Equal(Point.Empty, control.Location); 2412control.Location = Point.Empty; 2413Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (3)
419Assert.Equal(Point.Empty, actualPoint); 463Assert.Equal(Point.Empty, actualPoint); 781yield return new object[] { Point.Empty };
System\Windows\Forms\TextRendererTests.cs (36)
21yield return new object[] { hint, text, null, Point.Empty, Color.Red }; 50yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue }; 56yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Red }; 57yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black }; 58yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.White }; 59yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Transparent }; 60yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty }; 84yield return new object[] { hint, text, null, Point.Empty, Color.Red, TextFormatFlags.Default, }; 91yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.HorizontalCenter }; 92yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 93yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Bottom | TextFormatFlags.Right }; 94yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.SingleLine }; 95yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, (TextFormatFlags)1024 }; 96yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.RightToLeft }; 97yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, (TextFormatFlags)int.MaxValue }; 121yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, }; 127yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Red, TextFormatFlags.Default, }; 128yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black, TextFormatFlags.Default, }; 129yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.White, TextFormatFlags.Default, }; 130yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Transparent, TextFormatFlags.Default, }; 131yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty, TextFormatFlags.Default, }; 133yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 134yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Bottom | TextFormatFlags.Right }; 135yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 136yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)1024 }; 137yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.RightToLeft }; 138yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)int.MaxValue }; 323TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red); 327TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 331TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Default); 335TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 355TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red); 359TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 363TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Default); 367TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 391Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.Red));
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
29Assert.Equal(Point.Empty, control.AutoScrollPosition); 90Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
48Assert.Equal(Point.Empty, item.DropDownLocation); 137Assert.Equal(Point.Empty, item.DropDownLocation); 236Assert.Equal(Point.Empty, item.DropDownLocation); 344Assert.Equal(Point.Empty, item.DropDownLocation);
System\Windows\Forms\ToolStripDropDownTests.cs (9)
32Assert.Equal(Point.Empty, control.AutoScrollPosition); 113Assert.Equal(Point.Empty, control.Location); 1929if (value != Point.Empty) 1934if (expectedLocationChangedCallCount == 0 && SystemInformation.WorkingArea.Location != Point.Empty) 2332control.Show(sourceControl, Point.Empty); 2371control.Show(sourceControl, Point.Empty); 3095control.Show(sourceControl, Point.Empty); 3376control.Show(sourceControl, Point.Empty); 3435control.Show(sourceControl, Point.Empty);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
50Assert.Equal(new Rectangle(Point.Empty, toolStrip.Size), e.AffectedBounds);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
49Assert.Equal(Point.Empty, item.DropDownLocation);
System\Windows\Forms\ToolStripPanelTests.cs (2)
29Assert.Equal(Point.Empty, control.AutoScrollPosition); 90Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\ToolStripTests.cs (11)
32Assert.Equal(Point.Empty, control.AutoScrollPosition); 124Assert.Equal(Point.Empty, control.Location); 190Assert.Equal(Point.Empty, control.AutoScrollPosition); 279Assert.Equal(Point.Empty, control.Location); 872Assert.Equal(Point.Empty, control.AutoScrollPosition); 877Assert.Equal(Point.Empty, control.AutoScrollPosition); 7097Assert.Throws<ArgumentNullException>("item", () => control.SetItemLocation(null, Point.Empty)); 7105Assert.Throws<NotSupportedException>(() => control.SetItemLocation(item, Point.Empty)); 7117Assert.Throws<NotSupportedException>(() => control.SetItemLocation(item, Point.Empty)); 7128Assert.Throws<NotSupportedException>(() => control.SetItemLocation(item, Point.Empty)); 7140Assert.Throws<NotSupportedException>(() => control.SetItemLocation(item, Point.Empty));
System\Windows\Forms\TreeViewTests.cs (1)
87Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\UpDownBaseTests.cs (2)
27Assert.Equal(Point.Empty, control.AutoScrollPosition); 102Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\UserControlTests.cs (2)
33Assert.Equal(Point.Empty, control.AutoScrollPosition); 94Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\VScrollBarTests.cs (1)
83Assert.Equal(Point.Empty, control.Location);
System\Windows\Forms\WebBrowserTests.cs (1)
71Assert.Equal(Point.Empty, control.Location);
TextBoxBaseTests.cs (11)
4246yield return new object[] { Point.Empty }; 4274yield return new object[] { Point.Empty, "T" }; 4359yield return new object[] { Point.Empty }; 4388yield return new object[] { Point.Empty, 0 }; 4840Assert.Equal(Point.Empty, control.GetPositionFromCharIndex(index)); 4871Assert.Equal(Point.Empty, control.GetPositionFromCharIndex(index)); 4890Assert.Equal(Point.Empty, control.GetPositionFromCharIndex(index)); 4943Assert.Equal(Point.Empty, control.GetPositionFromCharIndex(index)); 4952yield return new object[] { IntPtr.Zero, Point.Empty }; 7816yield return new object[] { new Size(50, 50), true, 100, Point.Empty }; 7817yield return new object[] { new Size(50, 50), true, -1, Point.Empty };
TextBoxTests.cs (1)
82Assert.Equal(Point.Empty, control.Location);
TrackBarTests.cs (1)
76Assert.Equal(Point.Empty, control.Location);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
418e.Graphics.DrawImage(bitmap, SD.Point.Empty);
System\Windows\Integration\WindowsFormsHost.cs (1)
338Child.Location = SD.Point.Empty;