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