21 instantiations of RegionScope
System.Private.Windows.GdiPlus (2)
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (2)
13RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics.GetPointer())); 26RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics));
System.Windows.Forms (10)
System\Windows\Forms\Control.cs (1)
8787using RegionScope hClippingRegion = new(
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3736using RegionScope dropDownRegion = new(FlatComboBoxAdapter._dropDownRect); 3737using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (3)
117using RegionScope hTotalRegion = new(0, 0, Width, Height); 118using RegionScope hClientRegion = new( 123using RegionScope hNonClientRegion = new(0, 0, 0, 0);
System\Windows\Forms\MDI\MDIClient.cs (2)
288using RegionScope rgn1 = new(0, 0, bounds.Width, bounds.Height); 289using RegionScope rgn2 = new(
System\Windows\Forms\Rendering\DCMapping.cs (2)
46RegionScope clippingRegion = new( 55RegionScope originalRegion = new(hdc);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
294using RegionScope hrgn = new(0, 0, 0, 0);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2066using var hrgn = new RegionScope(0, 0, 0, 0);
System.Windows.Forms.Primitives.Tests (7)
System\Windows\Forms\DeviceContextScopeTests.cs (3)
24using RegionScope dcRegion = new(2, 1, 4, 7); 28using RegionScope test = new(0, 0, 0, 0); 46using RegionScope regionScope = new(hdcScope);
Windows\Win32\RegionTests.cs (4)
21using RegionScope hregion = new(0, 0, 0, 0); 40using RegionScope hregion = new(hdc); 55using RegionScope originalRegion = new(rectangle); 57using RegionScope retrievedRegion = new(hdc);
28 references to RegionScope
System.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
73public static implicit operator HRGN(RegionScope regionScope) => regionScope.Region;
System.Private.Windows.GdiPlus (4)
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (4)
11public static RegionScope GetRegionScope(this IPointer<GpRegion> region, IPointer<GpGraphics> graphics) 13RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics.GetPointer())); 22public static RegionScope GetRegionScope(this IPointer<GpRegion> region, HWND hwnd) 26RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics));
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (3)
2819using RegionScope regionHandle = (regionCopy ?? region).GetRegionScope(HWND); 5891using RegionScope regionHandle = region.GetRegionScope(graphics); 8787using RegionScope hClippingRegion = new(
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3736using RegionScope dropDownRegion = new(FlatComboBoxAdapter._dropDownRect); 3737using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (3)
117using RegionScope hTotalRegion = new(0, 0, Width, Height); 118using RegionScope hClientRegion = new( 123using RegionScope hNonClientRegion = new(0, 0, 0, 0);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
377using RegionScope windowRegionHandle = windowRegion.GetRegionScope(g);
System\Windows\Forms\MDI\MDIClient.cs (2)
288using RegionScope rgn1 = new(0, 0, bounds.Width, bounds.Height); 289using RegionScope rgn2 = new(
System\Windows\Forms\Rendering\DCMapping.cs (2)
46RegionScope clippingRegion = new( 55RegionScope originalRegion = new(hdc);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
294using RegionScope hrgn = new(0, 0, 0, 0);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2066using var hrgn = new RegionScope(0, 0, 0, 0);
System.Windows.Forms.Primitives (1)
System\Drawing\RegionExtensions.cs (1)
8public static Region ToRegion(this RegionScope scope) => Region.FromHrgn(scope.Region);
System.Windows.Forms.Primitives.Tests (7)
System\Windows\Forms\DeviceContextScopeTests.cs (3)
24using RegionScope dcRegion = new(2, 1, 4, 7); 28using RegionScope test = new(0, 0, 0, 0); 46using RegionScope regionScope = new(hdcScope);
Windows\Win32\RegionTests.cs (4)
21using RegionScope hregion = new(0, 0, 0, 0); 40using RegionScope hregion = new(hdc); 55using RegionScope originalRegion = new(rectangle); 57using RegionScope retrievedRegion = new(hdc);