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