14 writes to Position
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
975Cursor.Position = cursorLoc;
System\Windows\Forms\Form.cs (1)
4359Cursor.Position = pointToSnap;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
154Cursor.Position = controlOrigin;
System.Windows.Forms.Tests (10)
System\Windows\Forms\CursorTests.cs (5)
23public CursorTestsFixture() => Cursor.Position = default; 25public void Dispose() => Cursor.Position = default; 278Cursor.Position = new Point(1, 2); 284Cursor.Position = new Point(virtualScreen.X - 1, virtualScreen.Y - 1); 291Cursor.Position = position;
System\Windows\Forms\DataGridViewTests.cs (1)
20Cursor.Position = default;
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
717Cursor.Position = position; 722Cursor.Position = initialPosition;
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (2)
388Cursor.Position = position; 393Cursor.Position = initialPosition;
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ControlTestBase.cs (1)
96Cursor.Position = mousePosition;
38 references to Position
System.Windows.Forms (20)
System\Windows\Forms\Controls\ListView\ListView.cs (6)
4370Point pos = Cursor.Position; 5821pt = PointToClient(Cursor.Position) 5863pt = PointToClient(Cursor.Position) 5969AnnounceColumnHeader(Cursor.Position); 6324pt = PointToClient(Cursor.Position) 6646Point pos = Cursor.Position;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5253Point mouseLoc = Cursor.Position;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4507Point cursorLocation = Cursor.Position;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
967cursorLoc.Y = Cursor.Position.Y; 972cursorLoc.X = Cursor.Position.X;
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2062pt = PointToClient(Cursor.Position) 2923pt = PointToClient(Cursor.Position) 2954pt = PointToClient(Cursor.Position) 3028Point pos = PointToClient(Cursor.Position);
System\Windows\Forms\OLE\DropSource.cs (1)
93if (!lastHwndTarget.IsNull && (Cursor.Position is Point point))
System\Windows\Forms\ToolTip\ToolTip.cs (5)
1314Point cursorLocation = Cursor.Position; 2003Point cursorLocation = Cursor.Position; 2081Screen screen = Screen.FromPoint(Cursor.Position); 2142Point cursorPos = Cursor.Position; 2234Screen screen = Screen.FromPoint(Cursor.Position);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location)) 282if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)))
System\Windows\Forms\Design\ControlDesigner.cs (1)
2205location = Cursor.Position;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
625                   Point p = Cursor.Position;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
61if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 900if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 915ToolStripDesigner.s_lastCursorPosition = Cursor.Position;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
491Point p = Cursor.Position;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
510ToolStripDesigner.s_lastCursorPosition = Cursor.Position;
System.Windows.Forms.Tests (6)
System\Windows\Forms\CursorTests.cs (4)
263Point position = Cursor.Position; 275Point position = Cursor.Position; 279position = Cursor.Position; 285position = Cursor.Position;
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
697Point initialPosition = Cursor.Position;
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
369Point initialPosition = Cursor.Position;
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ControlTestBase.cs (1)
69_mousePosition = Cursor.Position;
Infra\ScreenshotService.cs (1)
75Rectangle bounds = new(Cursor.Position - (Size)cursor.HotSpot, cursor.Size);
WinFormsControlsTest (1)
ListViewTest.cs (1)
29Point pos = Cursor.Position;