18 references to ReleaseHdc
System.Drawing.Common.Tests (15)
mono\System.Drawing\GraphicsTests.cs (2)
2985
g.
ReleaseHdc
(hdc1);
2987
g.
ReleaseHdc
(hdc2);
mono\System.Imaging\MetafileTest.cs (5)
226
g.
ReleaseHdc
(hdc);
243
g.
ReleaseHdc
(hdc);
259
g.
ReleaseHdc
(hdc);
299
g.
ReleaseHdc
(hdc);
341
g.
ReleaseHdc
(hdc);
System\Drawing\GraphicsTests.cs (8)
139
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
ReleaseHdc
(hdc));
143
graphics.
ReleaseHdc
(hdc);
178
graphics1.
ReleaseHdc
(hdc2);
179
AssertExtensions.Throws<ArgumentException>(null, () => graphics1.
ReleaseHdc
(hdc1));
181
graphics2.
ReleaseHdc
(hdc1);
182
AssertExtensions.Throws<ArgumentException>(null, () => graphics2.
ReleaseHdc
(hdc2));
191
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
ReleaseHdc
(IntPtr.Zero));
203
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
ReleaseHdc
(IntPtr.Zero));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
448
g.
ReleaseHdc
(hDc);
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextScopeTests.cs (2)
87
graphics.
ReleaseHdc
(hdc);
100
graphics.
ReleaseHdc
(hdc);