9 references to DrawToBitmap
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1011
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)
1881
control.
DrawToBitmap
(bitmap, targetBounds);
1903
control.
DrawToBitmap
(bitmap, rectangle);
1914
Assert.Throws<ArgumentNullException>("bitmap", () => control.
DrawToBitmap
(null, new Rectangle(1, 2, 3, 4)));
1932
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(x, y, width, height)));
1946
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));
1960
Assert.Throws<ArgumentException>(() => control.
DrawToBitmap
(bitmap, new Rectangle(1, 2, 3, 4)));