23 writes to Location
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1702
bounds.
Location
= new Point(bounds.X, bounds.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
200
bounds.
Location
= Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1040
dropDownBounds.
Location
= new Point(start.X + offset.X, start.Y + offset.Y);
1757
bounds.
Location
= toolStrip.PointToClient(bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
336
dropDownBounds.
Location
= new Point(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
561
client.
Location
= Point.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2917
bounds.
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)
78
value.
Location
= pt;
164
newBounds.
Location
= pt;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
443
rect.
Location
= FlipPoint(rect.Location);
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
202
controlBounds.
Location
= controlRect.
Location
= _behaviorService.ControlToAdornerWindow(controlDesigner.Control);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
204
rect.
Location
= MapPointFromSourceToTarget(rect.Location);
691
controlRect.
Location
= _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.Location);
692
controlRect.
Location
= _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location);
787
_dragImageRect.
Location
= newPosition;
789
previousImageRect.
Location
= MapPointFromSourceToTarget(previousImageRect.Location);
791
newImageRect.
Location
= MapPointFromSourceToTarget(newImageRect.Location);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
622
controlBounds.
Location
= _behaviorService.MapAdornerWindowPoint(targetControl.Parent.Handle, controlBounds.Location);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2106
paintRect.
Location
= Control.PointToScreen(paintRect.Location);
System\Windows\Forms\Design\DesignerFrame.cs (1)
481
overlayControlScreenBounds.
Location
= overlayControl.PointToScreen(overlayControl.Location);
53 references to Location
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
761
graphics.DrawImage(item._displayImage, iconRect.
Location
);
System.Windows.Forms (34)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
561
Control.DisplayRectangle.
Location
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
628
layout.ImageStart = layout.ImageBounds.
Location
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (1)
18
Control.PaintBackground(e, rect, backColor, rect.
Location
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
27
Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.
Location
);
73
Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.
Location
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
101
Control.DisplayRectangle.
Location
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
203
Rectangle 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)
639
DisplayRectangle.
Location
);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
383
Point noMansLand = displayRect.
Location
;
423
if (item.Bounds.
Location
!= noMansLand)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4050
Point newLocation = item.Bounds.
Location
;
4510
cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, s_onePixel)).
Location
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
990
: suggestedBounds.
Location
;
1001
: suggestedBounds.
Location
;
1757
bounds.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)
215
return GetDropDownBounds(dropDownDirection).
Location
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
2377
Point rectangleLocation = TranslatePoint(r.
Location
, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords);
3245
if (_bounds.
Location
!= oldBounds.
Location
)
3441
Point currentToolStripItemLocation = Bounds.
Location
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
304
return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.
Location
), bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
955
Point cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.
Location
);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButtonLayout.cs (2)
44
imageRect.Offset(_owner.SplitButtonButton.Bounds.
Location
);
55
textRect.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)
2917
bounds.Location = PointToScreen(bounds.
Location
);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
81
Point location = oldBounds.
Location
;
System\Windows\Forms\Layout\FlowLayout.cs (1)
166
Point location = rowBounds.
Location
;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
443
rect.Location = FlipPoint(rect.
Location
);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
505
imageRectangle.Offset(clipRect.
Location
);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
674
_displayRect.
Location
);
System.Windows.Forms.Design (18)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
234
Rectangle rectScreen = Screen.FromPoint(rectangleAnchor.
Location
).WorkingArea;
System\ComponentModel\Design\DesignerActionUI.cs (3)
668
glyphLocationScreenCoord = _behaviorService.AdornerWindowPointToScreen(glyph.Bounds.
Location
);
676
glyphLocationScreenCoord = _behaviorService.AdornerWindowPointToScreen(glyph.Bounds.
Location
);
683
glyphLocationScreenCoord = 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)
204
rect.Location = MapPointFromSourceToTarget(rect.
Location
);
691
controlRect.Location = _behaviorServiceSource.AdornerWindowPointToScreen(controlRect.
Location
);
692
controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.
Location
);
789
previousImageRect.Location = MapPointFromSourceToTarget(previousImageRect.
Location
);
791
newImageRect.Location = MapPointFromSourceToTarget(newImageRect.
Location
);
957
_dragComponents[i].draggedLocation = controlRect.
Location
;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
622
controlBounds.Location = _behaviorService.MapAdornerWindowPoint(targetControl.Parent.Handle, controlBounds.
Location
);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
333
graphics.DrawImage(DesignerUtils.BoxImage, newRectangle.
Location
);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2106
paintRect.Location = Control.PointToScreen(paintRect.
Location
);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1857
Rectangle rect = new(ClientRectangle.
Location
, ClientRectangle.Size);
System\Windows\Forms\Design\DesignerFrame.cs (1)
463
Rectangle invalidateRect = new(overlayControl.PointToClient(screenRectangle.
Location
), screenRectangle.Size);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
963
Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.
Location
);
1069
Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.
Location
);