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