14 references to FromHdcInternal
System.Drawing.Common (6)
System\Drawing\Font.cs (5)
698using Graphics graphics = Graphics.FromHdcInternal(hdc); 706using Graphics graphics = Graphics.FromHdcInternal(hdc); 717using Graphics graphics = Graphics.FromHdcInternal(hdc); 726using Graphics graphics = Graphics.FromHdcInternal(hdc); 744using Graphics graphics = Graphics.FromHdcInternal(hdc);
System\Drawing\Graphics.cs (1)
84return hdc == 0 ? throw new ArgumentNullException(nameof(hdc)) : FromHdcInternal(hdc);
System.Drawing.Common.Tests (2)
System\Drawing\GraphicsTests.cs (2)
102using Graphics graphics = Graphics.FromHdcInternal(hdc); 116Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdcInternal(IntPtr.Zero));
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3767using Graphics g = Graphics.FromHdcInternal((IntPtr)dc);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383using Graphics graphics = Graphics.FromHdcInternal(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
110_graphics = Graphics.FromHdcInternal((IntPtr)_hdc);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
124internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC); 125internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
99using Graphics g = Graphics.FromHdcInternal(hdc);