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