13 references to DeviceContext
System.Windows.Forms (13)
misc\GDI\MeasurementDCInfo.cs (4)
37return sharedGraphics != null && sharedGraphics.DeviceContext != null && sharedGraphics.DeviceContext.Hdc == dc.Hdc; 89if (sharedGraphics != null && sharedGraphics.DeviceContext != null && sharedGraphics.DeviceContext.Hdc == hdc) {
misc\GDI\WindowsFont.cs (4)
150int pixelsY = (int) Math.Ceiling( WindowsGraphicsCacheManager.MeasurementGraphics.DeviceContext.DpiY * size / 72); // 1 point = 1/72 inch.; 471wg.DeviceContext.SelectFont(this); 530wg.DeviceContext.SelectFont(this); 554this.fontSize = height * 72f / wg.DeviceContext.DpiY;
misc\GDI\WindowsGraphics.cs (2)
221wg.DeviceContext.IntersectClip(wr); 229wg.DeviceContext.TranslateTransform((int)elements[4], (int)elements[5]);
misc\GDI\WindowsGraphics2.cs (1)
460if (MeasurementDCInfo.IsMeasurementDC(this.DeviceContext))
misc\GDI\WindowsGraphicsCacheManager.cs (2)
105if (measurementGraphics == null || measurementGraphics.DeviceContext == null /*object disposed*/) 107Debug.Assert( measurementGraphics == null || measurementGraphics.DeviceContext != null, "TLS MeasurementGraphics was disposed somewhere, enable TRACK_HDC macro to determine who did it, recreating it for now ..." );