5 implementations of ReleaseHdc
System.Drawing.Common (1)
Special\NotSupported.cs (1)
652public void ReleaseHdc() { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
163void IDeviceContext.ReleaseHdc() => Graphics?.ReleaseHdc();
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
136void IDeviceContext.ReleaseHdc() => Graphics?.ReleaseHdc();
System.Windows.Forms.Primitives.TestUtilities (1)
HdcDeviceContextAdapter.cs (1)
19public void ReleaseHdc() { }
System.Windows.Forms.Tests (1)
System\Windows\Forms\TextRendererTests.cs (1)
664public void ReleaseHdc() { }
24 references to ReleaseHdc
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
164void IHdcContext.ReleaseHdc() => ((IDeviceContext)this).ReleaseHdc();
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
137void IHdcContext.ReleaseHdc() => ((IDeviceContext)this).ReleaseHdc();
System.Windows.Forms.Primitives (1)
System\Windows\Forms\DeviceContextExtensions.IDeviceContextAdapter.cs (1)
15public void ReleaseHdc() => _deviceContext.ReleaseHdc();
System.Windows.Forms.Tests (21)
System\Windows\Forms\TextRendererTests.cs (21)
319.Setup(c => c.ReleaseHdc()) 325mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Once()); 329mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(2)); 333mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(3)); 337mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(4)); 341mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(5)); 345mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(6)); 349mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(7)); 353mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(8)); 357mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(9)); 361mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(10)); 365mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(11)); 369mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(12)); 373mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(13)); 377mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(14)); 381mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(15)); 385mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(16)); 544.Setup(c => c.ReleaseHdc()) 550mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Once()); 554mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(2)); 558mockDeviceContext.Verify(c => c.ReleaseHdc(), Times.Exactly(3));