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)
1890
control.
DrawToBitmap
(bitmap, targetBounds);
1912
control.
DrawToBitmap
(bitmap, rectangle);
1923
Assert.Throws<ArgumentNullException>("bitmap", () => control.
DrawToBitmap
(null, new Rectangle(1, 2, 3, 4)));
1941
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(x, y, width, height)));
1955
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));
1969
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));