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