56 references to Offset
System.Drawing.Primitives (1)
System\Drawing\Point.cs (1)
163public void Offset(Point p) => Offset(p.X, p.Y);
System.Windows.Forms (27)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (19)
157p1.Offset(0, -1); // Need to paint last pixel too. 167p1.Offset(-1, 2); 168p2.Offset(1, 1); 169p3.Offset(1, -1); 170p4.Offset(-1, -1); 182p1.Offset(0, -1); // Need to paint last pixel too. 204p1.Offset(0, -1); // Need to paint last pixel too. 212p1.Offset(-1, 2); 213p2.Offset(1, 1); 214p3.Offset(1, -1); 215p4.Offset(-1, -1); 227p1.Offset(0, -1); // Need to paint last pixel too. 260p1.Offset(0, -1); // Need to paint last pixel too. 265p1.Offset(-1, 2); 266p2.Offset(1, 1); 267p3.Offset(1, -1); 268p4.Offset(-1, -1); 286p1.Offset(0, -1); // Need to paint last pixel too. 314p1.Offset(0, -1); // Need to paint last pixel too.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4865location.Offset(25, 25);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1824position.Offset(control.IsMirrored ? Width : -Width, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
671screenLocation.Offset(-toolStripToDrag.Width, 0);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
1389gradientCopyPixel.Offset(1, -1);
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (4)
71pt.Offset(0, ptScroll.X); 75pt.Offset(ptScroll.X, 0); 157pt.Offset(ptScroll.Y, 0); 161pt.Offset(ptScroll.X, 0);
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
320pt.Offset(pt1.X, pt1.Y);
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
182screenLoc.Offset(mouseLoc.X, mouseLoc.Y);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
548_dragOffset.Offset(-rootControl.Width, 0);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (4)
276pt.Offset(-ptScroll.X, -ptScroll.Y); 455initialDropPoint.Offset(-((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).Width, 0); 828dropPoint.Offset(-c.Width, 0); 890_parentLocation.Offset(-parentControl.Width, 0);
System\Windows\Forms\Design\CommandSet.cs (4)
880loc.Offset(moveOffsetX, moveOffsetY); 929loc.Offset(moveOffsetX, moveOffsetY); 3404offset.Offset(parentOffset.X, parentOffset.Y); 3417newLoc.Offset(offset.X, offset.Y);
System\Windows\Forms\Design\ComponentTray.cs (2)
2553pt.Offset(pt1.X, pt1.Y); 2556pt.Offset(Location.X, Location.Y);
System\Windows\Forms\Design\ControlDesigner.cs (3)
89loc.Offset(-pt.X, -pt.Y); 99value.Offset(pt.X, pt.Y); 298offset.Offset(Control.Width, 0);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
450point1.Offset(-offset.X, -offset.Y); 451point2.Offset(-offset.X, -offset.Y);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
424loc.Offset(GridSize.Width, GridSize.Height); 581pt.Offset(-ptScroll.X, -ptScroll.Y); // always want to add the control below/right of the AutoScrollPosition
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2627point.Offset(bounds.Width / 2, bounds.Height / 2); 2658point.Offset(bounds.Width / 2, bounds.Height / 2);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
5006expectedLocation.Offset(nonClientSize.Width - 3, nonClientSize.Height - 1); 5010expectedLocation.Offset(0, -toolStripDropDown.Height);
System.Windows.Forms.UI.IntegrationTests (4)
DesignBehaviorsTests.cs (1)
124startCoordinates.Offset(110, 50);
DragDropTests.cs (3)
433startCoordinates.Offset(155, 0); 468toolStripItemCoordinates.Offset(0, 40); 476toolStripItemCoordinates.Offset(50, 50);