9 references to DrawToBitmap
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1009
base.
DrawToBitmap
(bitmap, targetBounds);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1605
base.
DrawToBitmap
(bitmap, targetBounds);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
161
base.
DrawToBitmap
(bitmap, targetBounds);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlTests.Methods.cs (6)
1863
control.
DrawToBitmap
(bitmap, targetBounds);
1885
control.
DrawToBitmap
(bitmap, rectangle);
1896
Assert.Throws<ArgumentNullException>("bitmap", () => control.
DrawToBitmap
(null, new Rectangle(1, 2, 3, 4)));
1914
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(x, y, width, height)));
1928
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));
1942
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));