19 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 (15)
System\Windows\Forms\Control.cs (1)
9590using RegionScope hClippingRegion = new(
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3977using RegionScope dropDownRegion = new(FlatComboBoxAdapter._dropDownRect); 3978using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (1)
679using RegionScope region = new(
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
2728return new RegionScope(HRGN.Null); 2736RegionScope nonClientRegion = new(windowRect.left, windowRect.top, windowRect.right, windowRect.bottom); 2738using RegionScope clientRegion = new( 2748return new RegionScope(HRGN.Null);
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)
286using RegionScope rgn1 = new(0, 0, bounds.Width, bounds.Height); 287using 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);
26 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 (18)
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
379using RegionScope windowRegionHandle = windowRegion.GetRegionScope(g);
System\Windows\Forms\Control.cs (3)
3021using RegionScope regionHandle = (regionCopy ?? region).GetRegionScope(HWND); 6140using RegionScope regionHandle = region.GetRegionScope(graphics); 9590using RegionScope hClippingRegion = new(
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3977using RegionScope dropDownRegion = new(FlatComboBoxAdapter._dropDownRect); 3978using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (1)
679using RegionScope region = new(
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
2665using RegionScope nonClientRegion = CreateNonClientClipRegion(); 2724private RegionScope CreateNonClientClipRegion() 2736RegionScope nonClientRegion = new(windowRect.left, windowRect.top, windowRect.right, windowRect.bottom); 2738using RegionScope clientRegion = new(
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)
286using RegionScope rgn1 = new(0, 0, bounds.Width, bounds.Height); 287using 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);