23 writes to Location
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)
200bounds.Location = Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1040dropDownBounds.Location = new Point(start.X + offset.X, start.Y + offset.Y); 1757bounds.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)
561client.Location = Point.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2917bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Form.cs (2)
6564_restoredWindowBounds.Location = Location; 6570_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); 691controlRect.Location = _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.Location); 692controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location); 787_dragImageRect.Location = newPosition; 789previousImageRect.Location = MapPointFromSourceToTarget(previousImageRect.Location); 791newImageRect.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)
2106paintRect.Location = Control.PointToScreen(paintRect.Location);
System\Windows\Forms\Design\DesignerFrame.cs (1)
481overlayControlScreenBounds.Location = overlayControl.PointToScreen(overlayControl.Location);
53 references to Location
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
761graphics.DrawImage(item._displayImage, iconRect.Location);
System.Windows.Forms (34)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
561Control.DisplayRectangle.Location,
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\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
203Rectangle arcRect = new(bounds.Location, new Size(diameter, diameter));
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
33_outerBorder = new Rectangle(_clientRect.Location, new Size(_clientRect.Width - 1, _clientRect.Height - 1));
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
639DisplayRectangle.Location);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
383Point noMansLand = displayRect.Location; 423if (item.Bounds.Location != noMansLand)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4050Point newLocation = item.Bounds.Location; 4510cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, s_onePixel)).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
990: suggestedBounds.Location; 1001: suggestedBounds.Location; 1757bounds.Location = toolStrip.PointToClient(bounds.Location); 1832_displayLocation = CalculateDropDownLocation(control.PointToScreen(position), direction).Location; 1854_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)
2377Point rectangleLocation = TranslatePoint(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords); 3245if (_bounds.Location != oldBounds.Location) 3441Point 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)
2917bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
81Point 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)
505imageRectangle.Offset(clipRect.Location);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
674_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); 691controlRect.Location = _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.Location); 692controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location); 789previousImageRect.Location = MapPointFromSourceToTarget(previousImageRect.Location); 791newImageRect.Location = MapPointFromSourceToTarget(newImageRect.Location); 957_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)
333graphics.DrawImage(DesignerUtils.BoxImage, newRectangle.Location);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2106paintRect.Location = Control.PointToScreen(paintRect.Location);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1857Rectangle rect = new(ClientRectangle.Location, ClientRectangle.Size);
System\Windows\Forms\Design\DesignerFrame.cs (1)
463Rectangle invalidateRect = new(overlayControl.PointToClient(screenRectangle.Location), screenRectangle.Size);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
963Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location); 1069Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.Location);