16 references to new
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (1)
58
bool saveHdcState = false) :
this
(
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3489
using DeviceContextHdcScope toolStripHDC =
new
(toolstripGraphics, ApplyGraphicsProperties.Clipping);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
184
IHdcContext hdc =>
new
(hdc, applyProperties),
185
_ =>
new
(new IDeviceContextAdapter(deviceContext), applyProperties)
System.Windows.Forms.Primitives.Tests (12)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (12)
27
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.TranslateTransform))
42
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.Clipping))
57
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.All))
72
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.None))
110
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.TranslateTransform))
137
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.Clipping))
160
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.All))
183
using (DeviceContextHdcScope scope =
new
(g, ApplyGraphicsProperties.None))
226
using (DeviceContextHdcScope scope =
new
(mockIDeviceContext.Object, (ApplyGraphicsProperties)apply))
264
using (DeviceContextHdcScope scope =
new
(mockIDeviceContext.Object, (ApplyGraphicsProperties)apply))
298
using (DeviceContextHdcScope scope =
new
(mockIDeviceContext.Object, ApplyGraphicsProperties.None))
329
using (DeviceContextHdcScope scope =
new
(mockIDeviceContext.Object, (ApplyGraphicsProperties)apply))