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