14 references to new
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\HBITMAP.cs (2)
24using CreateDcScope sourceDC = new(screenDC); 28using CreateDcScope destinationDC = new(screenDC);
System.Windows.Forms (6)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1705using CreateDcScope compatibleDC = new(default);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
707using CreateDcScope dc = new(default);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
153using CreateDcScope screen = new(default); 154using CreateDcScope dc = new(screen); 308using CreateDcScope sourceDC = new(screenDC); 309using CreateDcScope targetDC = new(screenDC);
System.Windows.Forms.Primitives.Tests (5)
System\Windows\Forms\DeviceContextScopeTests.cs (2)
19using CreateDcScope dcScope = new(default); 59using CreateDcScope dcScope = new(default);
Windows\Win32\RegionTests.cs (3)
14using CreateDcScope hdc = new(HDC.Null); 34using CreateDcScope hdc = new(HDC.Null); 48using CreateDcScope hdc = new(HDC.Null);
System.Windows.Forms.Tests (1)
System\Windows\Forms\TextRendererTests.cs (1)
751using var hdc = new CreateDcScope(default);