6 references to Draw
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
516
public void Draw(Graphics g, int x, int y, int index) =>
Draw
(g, x, y, _imageSize.Width, _imageSize.Height, index);
System.Windows.Forms.Tests (5)
System\Windows\Forms\ImageListTests.cs (5)
999
list.
Draw
(graphics, x, y, width, height, 0);
1014
list.
Draw
(graphics, x, y, width, height, 0);
1026
Assert.Throws<NullReferenceException>(() => list.
Draw
(null, 0, 0, 10, 10, 0));
1041
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Draw
(graphics, 0, 0, 10, 10, index));
1057
Assert.Throws<ArgumentOutOfRangeException>("index", () => list.
Draw
(graphics, 0, 0, 10, 10, index));