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