31 writes to Location
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2087rect.Location = new Point(10, 10); 2104rect.Location = new Point(10, 10);
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1702bounds.Location = new Point(bounds.X, bounds.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
201bounds.Location = Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1043dropDownBounds.Location = new Point(start.X + offset.X, start.Y + offset.Y); 1760bounds.Location = toolStrip.PointToClient(bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
336dropDownBounds.Location = new Point(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
556client.Location = Point.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2930bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Form.cs (2)
6458_restoredWindowBounds.Location = Location; 6464_restoreBounds.Location = Location;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
78value.Location = pt; 164newBounds.Location = pt;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
443rect.Location = FlipPoint(rect.Location);
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
202controlBounds.Location = controlRect.Location = _behaviorService.ControlToAdornerWindow(controlDesigner.Control);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
204rect.Location = MapPointFromSourceToTarget(rect.Location); 697controlRect.Location = _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.Location); 698controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location); 793_dragImageRect.Location = newPosition; 795previousImageRect.Location = MapPointFromSourceToTarget(previousImageRect.Location); 797newImageRect.Location = MapPointFromSourceToTarget(newImageRect.Location);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
622controlBounds.Location = _behaviorService.MapAdornerWindowPoint(targetControl.Parent.Handle, controlBounds.Location);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2091paintRect.Location = Control.PointToScreen(paintRect.Location);
System\Windows\Forms\Design\DesignerFrame.cs (1)
484overlayControlScreenBounds.Location = overlayControl.PointToScreen(overlayControl.Location);
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
159actualBounds.Location = new Point(0, 0); 180actualBounds.Location = new Point(0, 0);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
306actualBounds.Location = new Point(0, 0); 344actualBounds.Location = new Point(0, 0);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (2)
664actualBounds.Location = new Point(0, 0); 667Location = new Point(0, 0)
83 references to Location
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
750graphics.DrawImage(item._displayImage, iconRect.Location);
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2876Rectangle arcrect = new(baserect.Location, new Size(d, d)); 2918Rectangle arcrect = new(baserect.Location, new Size(d, d));
System.Windows.Forms (32)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
628layout.ImageStart = layout.ImageBounds.Location;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (1)
18Control.PaintBackground(e, rect, backColor, rect.Location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
27Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location); 73Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
101Control.DisplayRectangle.Location,
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
35_outerBorder = new Rectangle(_clientRect.Location, new Size(_clientRect.Width - 1, _clientRect.Height - 1));
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
635DisplayRectangle.Location);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
374Point noMansLand = displayRect.Location; 414if (item.Bounds.Location != noMansLand)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4049Point newLocation = item.Bounds.Location; 4510cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, s_onePixel)).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
993: suggestedBounds.Location; 1004: suggestedBounds.Location; 1760bounds.Location = toolStrip.PointToClient(bounds.Location); 1835_displayLocation = CalculateDropDownLocation(control.PointToScreen(position), direction).Location; 1857_displayLocation = CalculateDropDownLocation(position, direction).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
215return GetDropDownBounds(dropDownDirection).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
2370Point rectangleLocation = TranslatePoint(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords); 3244if (_bounds.Location != oldBounds.Location) 3440Point currentToolStripItemLocation = Bounds.Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
304return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
955Point cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButtonLayout.cs (2)
44imageRect.Offset(_owner.SplitButtonButton.Bounds.Location); 55textRect.Offset(_owner.SplitButtonButton.Bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
192_noMansLand = _displayRectangle.Location;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2930bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
82Point location = oldBounds.Location;
System\Windows\Forms\Layout\FlowLayout.cs (1)
166Point location = rowBounds.Location;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
443rect.Location = FlipPoint(rect.Location);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
473imageRectangle.Offset(clipRect.Location);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
682_displayRect.Location);
System.Windows.Forms.Design (18)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
234Rectangle rectScreen = Screen.FromPoint(rectangleAnchor.Location).WorkingArea;
System\ComponentModel\Design\DesignerActionUI.cs (3)
668glyphLocationScreenCoord = _behaviorService.AdornerWindowPointToScreen(glyph.Bounds.Location); 676glyphLocationScreenCoord = _behaviorService.AdornerWindowPointToScreen(glyph.Bounds.Location); 683glyphLocationScreenCoord = compTray.PointToScreen(glyph.Bounds.Location);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
1154_dragOffset = dragBounds.Location;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
204rect.Location = MapPointFromSourceToTarget(rect.Location); 697controlRect.Location = _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.Location); 698controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location); 795previousImageRect.Location = MapPointFromSourceToTarget(previousImageRect.Location); 797newImageRect.Location = MapPointFromSourceToTarget(newImageRect.Location); 963_dragComponents[i].draggedLocation = controlRect.Location;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
622controlBounds.Location = _behaviorService.MapAdornerWindowPoint(targetControl.Parent.Handle, controlBounds.Location);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
340graphics.DrawImage(DesignerUtils.BoxImage, newRectangle.Location);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2091paintRect.Location = Control.PointToScreen(paintRect.Location);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1863Rectangle rect = new(ClientRectangle.Location, ClientRectangle.Size);
System\Windows\Forms\Design\DesignerFrame.cs (1)
466Rectangle invalidateRect = new(overlayControl.PointToClient(screenRectangle.Location), screenRectangle.Size);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
969Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location); 1075Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.Location);
System.Windows.Forms.Tests (22)
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
202Assert.Equal(createControl, actual.Location != Point.Empty);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (6)
1159listView.PointToScreen(listView.GetItemRect(0, ItemBoundsPortion.Label).Location); 1207listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location); 1223Assert.Same(GetDetailsSubItemOrFake(0, 1), HitTest(listView, GetDetailsSubItemOrFake(0, 1).Bounds.Location)); 1224Assert.Same(GetDetailsSubItemOrFake(0, 2), HitTest(listView, GetDetailsSubItemOrFake(0, 2).Bounds.Location)); 1225Assert.Same(GetDetailsSubItemOrFake(1, 1), HitTest(listView, GetDetailsSubItemOrFake(1, 1).Bounds.Location)); 1226Assert.Same(GetDetailsSubItemOrFake(1, 2), HitTest(listView, GetDetailsSubItemOrFake(1, 2).Bounds.Location));
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (3)
294Point point = expectedAccessibleObject.Bounds.Location; 312Point point = expectedAccessibleObject.Bounds.Location; 330Point point = expectedAccessibleObject.Bounds.Location;
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
234Point point = accessibleObject.Bounds.Location;
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
710Point position = listView.AccessibilityObject.Bounds.Location;
System\Windows\Forms\ListViewTests.cs (1)
5447Point subItemLocation = listView.Items[0].SubItems[subItemIndex].Bounds.Location + new Size(1, 1);
System\Windows\Forms\ScrollableControlTests.cs (2)
2345Assert.Equal(expectedDisplayRectangleLocation, control.DisplayRectangle.Location); 2417Assert.Equal(expectedDisplayRectangleLocation, control.DisplayRectangle.Location);
System\Windows\Forms\TabPageTests.cs (4)
2219Assert.Equal(expected.Location, control.Location); 2249Assert.Equal(expected.Location, control.Location); 4821Assert.Equal(expected.Location, control.Location); 4851Assert.Equal(expected.Location, control.Location);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
1934if (expectedLocationChangedCallCount == 0 && SystemInformation.WorkingArea.Location != Point.Empty)
System\Windows\Forms\ToolTipTests.cs (1)
854Assert.True(PInvokeCore.PostMessage(toolTip, PInvokeCore.WM_MOUSEMOVE, lParam: PARAM.FromPoint(tabPage.GetToolNativeScreenRectangle().Location)));
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
381Point position = treeView.AccessibilityObject.Bounds.Location;
System.Windows.Forms.UI.IntegrationTests (8)
ButtonTests.cs (4)
183Assert.Equal(originalButtonPosition.Location, button.DisplayRectangle.Location); 213Assert.Equal(originalButtonPosition.Location, button.DisplayRectangle.Location);
DesignBehaviorsTests.cs (1)
101var dndStartCoordinates = treeView.PointToScreen(node.Bounds.Location);
DragDropTests.cs (1)
765_screenOffset = SystemInformation.WorkingArea.Location;
ListViewTests.cs (1)
300listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
MonthCalendarTests.cs (1)
178return cell.Bounds.Location + (cell.Bounds.Size / 2);