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