17 references to HotSpot
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4508cursorLocation.Y += Cursor.Size.Height - currentCursor.HotSpot.Y;
System\Windows\Forms\ToolTip\ToolTip.cs (2)
2182if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom) 2188wp->y = cursorPos.Y + currentCursor.Size.Height - currentCursor.HotSpot.Y;
System.Windows.Forms.Tests (13)
System\Windows\Forms\CursorConverterTests.cs (1)
40Assert.Equal(new Point(5, 8), cursor.HotSpot);
System\Windows\Forms\CursorsTests.cs (1)
53Point hotSpot = cursor.HotSpot;
System\Windows\Forms\CursorTests.cs (11)
35Assert.Equal(sourceCursor.HotSpot, cursor.HotSpot); 45Assert.Equal(new Point(0, 0), cursor.HotSpot); 69Assert.Equal(expectedHotSpot, cursor.HotSpot); 120Assert.Equal(expectedHotSpot, cursor.HotSpot); 157Assert.Equal(new Point(5, 8), cursor.HotSpot); 231Point hotSpot = cursor.HotSpot; 334Assert.Equal(sourceCursor.HotSpot, cursor.HotSpot); 345Assert.Throws<ObjectDisposedException>(() => cursor.HotSpot); 349Assert.Throws<ObjectDisposedException>(() => cursor.HotSpot);
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
75Rectangle bounds = new(Cursor.Position - (Size)cursor.HotSpot, cursor.Size);