21 references to FromHdc
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
28
using Graphics graphicsCopy = Graphics.
FromHdc
(hdc);
84
using Graphics graphics = Graphics.
FromHdc
(hdc);
110
AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.
FromHdc
(IntPtr.Zero));
System.Windows.Forms.Tests (18)
System\Windows\Forms\CheckBoxRendererTests.cs (4)
26
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
62
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
99
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
134
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
19
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
38
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
98
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
173
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
247
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
321
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
349
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
25
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
56
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
93
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
113
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
System\Windows\Forms\TextBoxRendererTests.cs (3)
34
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
63
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);
98
using Graphics graphics = Graphics.
FromHdc
((IntPtr)emf.HDC);