40 references to Size
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4507
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)
2187
if (wp->y + wp->cy + currentCursor.
Size
.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom)
2193
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)
43
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
System\Windows\Forms\CursorsTests.cs (4)
56
Assert.True(hotSpot.X >= 0 && hotSpot.X <= cursor.
Size
.Width);
57
Assert.True(hotSpot.Y >= 0 && hotSpot.Y <= cursor.
Size
.Height);
58
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
System\Windows\Forms\CursorTests.cs (26)
38
Assert.Equal(sourceCursor.
Size
, cursor.
Size
);
48
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
72
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
123
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
160
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
234
Assert.True(hotSpot.X >= 0 && hotSpot.X <= cursor.
Size
.Width);
235
Assert.True(hotSpot.Y >= 0 && hotSpot.Y <= cursor.
Size
.Height);
236
Assert.True(cursor.
Size
== new Size(32, 32) || cursor.
Size
== new Size(64, 64));
337
Assert.Equal(sourceCursor.
Size
, cursor.
Size
);
370
yield return new object[] { new Rectangle(0, 0, Cursors.Default.
Size
.Width, Cursors.Default.
Size
.Height) };
371
yield return new object[] { new Rectangle(1, 0, Cursors.Default.
Size
.Width, Cursors.Default.
Size
.Height) };
372
yield return new object[] { new Rectangle(0, 2, 3, Cursors.Default.
Size
.Height) };
373
yield return new object[] { new Rectangle(0, 0, Cursors.Default.
Size
.Width, 4) };
400
Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.
Size
)));
410
Assert.Throws<ArgumentException>(() => cursor.Draw(graphics, new Rectangle(Point.Empty, cursor.
Size
)));
437
Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.
Size
)));
447
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
);