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