22 references to FromHdcInternal
System.Drawing.Common (10)
System\Drawing\BufferedGraphicsContext.cs (1)
330
_compatGraphics = Graphics.
FromHdcInternal
(_compatDC);
System\Drawing\Font.cs (5)
698
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
706
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
717
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
726
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
744
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
System\Drawing\Graphics.cs (1)
84
return hdc == 0 ? throw new ArgumentNullException(nameof(hdc)) :
FromHdcInternal
(hdc);
System\Drawing\Printing\DefaultPrintController.cs (1)
89
_graphics = Graphics.
FromHdcInternal
(_hdc);
System\Drawing\Printing\PrinterSettings.cs (1)
509
Graphics g = Graphics.
FromHdcInternal
(hdc);
System\Drawing\Printing\PrintPreviewGraphics.cs (1)
32
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
103
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
117
Assert.Throws<ExternalException>(() => Graphics.
FromHdcInternal
(IntPtr.Zero));
236
Assert.Throws<ExternalException>(() => Graphics.
FromHdcInternal
(10));
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3806
using Graphics g = Graphics.
FromHdcInternal
((IntPtr)dc);
3846
using Graphics g = Graphics.
FromHdcInternal
((HDC)m.WParamInternal);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
667
using Graphics graphics = Graphics.
FromHdcInternal
((HDC)m.WParamInternal);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383
using Graphics graphics = Graphics.
FromHdcInternal
(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
110
_graphics = Graphics.
FromHdcInternal
((IntPtr)_hdc);
System.Windows.Forms.Primitives (3)
System\Windows\Forms\DeviceContextExtensions.cs (3)
123
internal static Graphics CreateGraphics(this HDC hdc) => Graphics.
FromHdcInternal
(hdc);
124
internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.
FromHdcInternal
(hdc.HDC);
125
internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.
FromHdcInternal
(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
99
using Graphics g = Graphics.
FromHdcInternal
(hdc);