9 references to DrawToBitmap
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1012
base.
DrawToBitmap
(bitmap, targetBounds);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1614
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)
1848
control.
DrawToBitmap
(bitmap, targetBounds);
1870
control.
DrawToBitmap
(bitmap, rectangle);
1881
Assert.Throws<ArgumentNullException>("bitmap", () => control.
DrawToBitmap
(null, new Rectangle(1, 2, 3, 4)));
1899
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(x, y, width, height)));
1913
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));
1927
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));