9 references to DrawToBitmap
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1012base.DrawToBitmap(bitmap, targetBounds);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1614base.DrawToBitmap(bitmap, targetBounds);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
161base.DrawToBitmap(bitmap, targetBounds);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlTests.Methods.cs (6)
1890control.DrawToBitmap(bitmap, targetBounds); 1912control.DrawToBitmap(bitmap, rectangle); 1923Assert.Throws<ArgumentNullException>("bitmap", () => control.DrawToBitmap(null, new Rectangle(1, 2, 3, 4))); 1941Assert.Throws<ArgumentException>(() => control.DrawToBitmap(bitmap, new Rectangle(x, y, width, height))); 1955Assert.Throws<ArgumentException>(() => control.DrawToBitmap(bitmap, new Rectangle(1, 2, 3, 4))); 1969Assert.Throws<ArgumentException>(() => control.DrawToBitmap(bitmap, new Rectangle(1, 2, 3, 4)));