40 references to Size
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4508
cursorLocation.Y += Cursor.
Size
.Height - currentCursor.HotSpot.Y;
System\Windows\Forms\Input\Cursor.cs (3)
224
Size sz =
Size
;
267
Size cursorSize =
Size
;
392
return
Size
;
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.Design (1)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
23
ItemHeight = Math.Max(4 + Cursors.Default.
Size
.Height, Font.Height);
System.Windows.Forms.Tests (32)
System\Windows\Forms\CursorConverterTests.cs (2)
41
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
System\Windows\Forms\CursorsTests.cs (4)
54
Assert.True(hotSpot.X >= 0 && hotSpot.X <= cursor.
Size
.Width);
55
Assert.True(hotSpot.Y >= 0 && hotSpot.Y <= cursor.
Size
.Height);
56
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
System\Windows\Forms\CursorTests.cs (26)
36
Assert.Equal(sourceCursor.
Size
, cursor.
Size
);
46
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
70
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
121
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
158
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
232
Assert.True(hotSpot.X >= 0 && hotSpot.X <= cursor.
Size
.Width);
233
Assert.True(hotSpot.Y >= 0 && hotSpot.Y <= cursor.
Size
.Height);
234
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
335
Assert.Equal(sourceCursor.
Size
, cursor.
Size
);
368
yield return new object[] { new Rectangle(0, 0, Cursors.Default.
Size
.Width, Cursors.Default.
Size
.Height) };
369
yield return new object[] { new Rectangle(1, 0, Cursors.Default.
Size
.Width, Cursors.Default.
Size
.Height) };
370
yield return new object[] { new Rectangle(0, 2, 3, Cursors.Default.
Size
.Height) };
371
yield return new object[] { new Rectangle(0, 0, Cursors.Default.
Size
.Width, 4) };
398
Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.
Size
)));
408
Assert.Throws<ArgumentException>(() => cursor.Draw(graphics, new Rectangle(Point.Empty, cursor.
Size
)));
435
Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.
Size
)));
445
Assert.Throws<ArgumentException>(() => cursor.DrawStretched(graphics, new Rectangle(Point.Empty, cursor.
Size
)));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
75
Rectangle bounds = new(Cursor.Position - (Size)cursor.HotSpot, cursor.
Size
);