5 references to DrawStretched
System.Windows.Forms.Design (1)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
72
cursor.
DrawStretched
(e.Graphics, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32, e.Bounds.Height - 4));
System.Windows.Forms.Tests (4)
System\Windows\Forms\CursorTests.cs (4)
418
cursor.
DrawStretched
(graphics, rectangle);
428
cursor.
DrawStretched
(graphics, rectangle);
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)));