12 references to GetHrgn
System.Drawing.Common.Tests (9)
System\Drawing\RegionTests.cs (9)
912IntPtr handle1 = region.GetHrgn(s_graphic); 913IntPtr handle2 = region.GetHrgn(s_graphic); 918IntPtr handle3 = newRegion.GetHrgn(s_graphic); 937IntPtr handle = region.GetHrgn(s_graphic); 942Assert.Equal(IntPtr.Zero, region.GetHrgn(s_graphic)); 949Assert.Equal(IntPtr.Zero, region.GetHrgn(s_graphic)); 952IntPtr handle = region.GetHrgn(s_graphic); 961AssertExtensions.Throws<ArgumentNullException>("g", () => region.GetHrgn(null)); 967AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().GetHrgn(s_graphic));
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5440hrgn = (HRGN)region.GetHrgn(graphics);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
637|| graphics.Clip.GetHrgn(graphics) == IntPtr.Zero,
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
743IntPtr hRgn = region.GetHrgn(g);