188 references to Empty
Microsoft.Private.Windows.Core (3)
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
354
pt = Point.
Empty
,
Windows\Win32\Graphics\Gdi\HDC.cs (2)
15
PInvokeCore.GetViewportOrgEx(this, out Point point) ? point : Point.
Empty
;
18
PInvokeCore.GetWindowOrgEx(this, out Point point) ? point : Point.
Empty
;
System.Private.Windows.Core (3)
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
354
pt = Point.
Empty
,
Windows\Win32\Graphics\Gdi\HDC.cs (2)
15
PInvokeCore.GetViewportOrgEx(this, out Point point) ? point : Point.
Empty
;
18
PInvokeCore.GetWindowOrgEx(this, out Point point) ? point : Point.
Empty
;
System.Windows.Forms (108)
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)
748
get => Properties.GetValueOrDefault(s_autoScrollOffsetProperty, Point.
Empty
);
749
set => Properties.AddOrRemoveValue(s_autoScrollOffsetProperty, value, defaultValue: Point.
Empty
);
8152
PaintBackground(e, rectangle, BackColor, Point.
Empty
);
8179
if (this is ScrollableControl scrollControl && scrollLocation != Point.
Empty
)
8817
PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.
Empty
, Size));
8832
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)
1355
ControlPaint.PrintBorder(g, new Rectangle(Point.
Empty
, Size), BorderStyle, Border3DStyle.SunkenOuter);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6916
Point startingPoint = Point.
Empty
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2390
Point newPoint = Point.
Empty
;
2405
Point newPoint = Point.
Empty
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
97
private Point _rowSelectPos = Point.
Empty
; // the position that we clicked on a row to test for double clicks
2637
_rowSelectPos = Point.
Empty
;
3490
_rowSelectPos = Point.
Empty
;
5296
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)
2261
return Point.
Empty
;
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
31
private Point _anchor = Point.
Empty
;
939
_anchor = Point.
Empty
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1606
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)
1011
Point offset = Point.
Empty
;
1020
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)
561
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);
346
Rectangle bounds = new(Point.
Empty
, item?.Size ?? Size.Empty);
416
Rectangle bounds = new(Point.
Empty
, toolStrip.Size);
545
Rectangle bounds = new(Point.
Empty
, item.Size);
768
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.
Empty
, imageRect.Size), GraphicsUnit.Pixel);
845
Rectangle bounds = new(Point.
Empty
, toolStrip.Size);
852
Point topLeft = Point.
Empty
;
1107
Rectangle bounds = new(Point.
Empty
, item.Size);
1133
g.FillRectangle(brush, new Rectangle(Point.
Empty
, control.Size));
1140
Rectangle gradientBounds = new(Point.
Empty
, parent.Size);
1149
g.FillRectangle(b, new Rectangle(Point.
Empty
, control.Size));
1154
Rectangle gradientBounds = new(Point.
Empty
, control.Size);
1173
Rectangle bounds = new(Point.
Empty
, e.ToolStrip.Size);
1182
Rectangle bounds = new(Point.
Empty
, e.ToolStrip.Size);
1194
Rectangle bounds = new(Point.
Empty
, toolStripDropDown.Size);
1216
Rectangle overflowBoundsFill = new(Point.
Empty
, e.Item.Size);
1337
Rectangle bounds = new(Point.
Empty
, e.ToolStrip.Size);
1343
Point topLeft = Point.
Empty
;
1566
Rectangle bounds = new(Point.
Empty
, item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
827
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.
Empty
, imageRect.Size), GraphicsUnit.Pixel);
929
bounds: new Rectangle(Point.
Empty
, textSize),
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\ToolStripSystemDarkModeRenderer.cs (4)
228
Rectangle bounds = new(Point.
Empty
, e.Item.Size);
274
Rectangle bounds = new(Point.
Empty
, e.Item.Size);
321
Rectangle bounds = new(Point.
Empty
, e.Item.Size);
429
Rectangle bounds = new(Point.
Empty
, e.Item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (9)
331
Rectangle bounds = new(Point.
Empty
, e.GripBounds.Size);
441
vsRenderer.DrawBackground(g, new Rectangle(Point.
Empty
, item.Size));
447
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.
Empty
, item.Size), arrowColor, ArrowDirection.Down));
474
Rectangle bounds = new(Point.
Empty
, item.Size);
497
Rectangle fillRect = new(Point.
Empty
, item.Size);
543
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.
Empty
, e.Item.Size), e.Vertical);
655
Rectangle bounds = new(Point.
Empty
, splitButton.Size);
715
vsRenderer.DrawBackground(g, new Rectangle(Point.
Empty
, item.Size));
727
RenderSmall3DBorderInternal(g, new Rectangle(Point.
Empty
, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
835
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\Panels\Panel.cs (1)
230
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)
457
if (scrollOffset != Point.
Empty
)
508
Rectangle partOfImageToDraw = new(Point.
Empty
, imageRect.Size);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1984
if (tipInfo.Position != Point.
Empty
)
2174
if (((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0) && tipInfo.Position == Point.
Empty
)
2196
else if ((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0 && tipInfo.Position != Point.
Empty
)
2258
tipInfo.Position = Point.
Empty
;
System.Windows.Forms.Design (72)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
341
Rectangle editorBounds = new(Point.
Empty
, EditRegionSize);
365
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)
61
_initialDragPoint = Point.
Empty
;
174
if (InitialDragPoint == Point.
Empty
)
197
InitialDragPoint = Point.
Empty
;
259
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
;
881
_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)
37
_lastOffset = Point.
Empty
;
86
_lastOffset = Point.
Empty
;
106
Point offset = Point.
Empty
;
System\Windows\Forms\Design\CommandSet.cs (6)
545
return Point.
Empty
;
987
Point loc = Point.
Empty
;
2553
Point curLoc = Point.
Empty
, lastLoc = Point.
Empty
;
2554
Point primaryLoc = Point.
Empty
;
2618
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)
2134
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
;
2136
Point parentLoc = Point.
Empty
;
2148
Point controlLoc = Point.
Empty
;
2176
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)
101
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
);
624
SetParentDesignerValuesForDragDrop(glyphItem, false, Point.
Empty
);
888
if (ToolStripDesigner.s_lastCursorPosition != Point.
Empty
&& ToolStripDesigner.s_lastCursorPosition == Cursor.Position)
942
SetParentDesignerValuesForDragDrop(item, false, Point.
Empty
);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1290
Point newPoint = Point.
Empty
;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
273
_behavior?.OnMouseDown(_containerSelectorGlyph, MouseButtons.Left, Point.
Empty
);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
1823
Rectangle bounds = new(Point.
Empty
, e.ToolStrip.Size);
1838
Rectangle bounds = new(Point.
Empty
, item.Size);
1934
Rectangle bounds = new(Point.
Empty
, splitButton.Size);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
416
e.Graphics.DrawImage(bitmap, SD.Point.
Empty
);
System\Windows\Integration\WindowsFormsHost.cs (1)
332
Child.Location = SD.Point.
Empty
;