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