2 writes to dc
System.Windows.Forms (2)
misc\GDI\WindowsGraphics.cs (2)
68
this.
dc
= dc;
297
this.
dc
= null;
54 references to dc
System.Windows.Forms (54)
misc\GDI\WindowsGraphics.cs (8)
69
this.
dc
.SaveHdc();
245
return this.
dc
;
267
if (this.
dc
!= null )
274
this.
dc
.RestoreHdc();
278
this.
dc
.Dispose(disposing);
283
this.graphics.ReleaseHdcInternal(this.
dc
.Hdc);
307
return this.
dc
.Hdc;
313
this.
dc
.Dispose();
misc\GDI\WindowsGraphics2.cs (46)
78
HandleRef hdc = new HandleRef( this.
dc
, this.
dc
.Hdc);
108
HandleRef hdc = new HandleRef( this.
dc
, this.
dc
.Hdc);
211
HandleRef hdc = new HandleRef( this.
dc
, this.
dc
.Hdc);
214
if( this.
dc
.TextAlignment != DeviceContextTextAlignment.Default )
216
this.
dc
.SetTextAlignment(DeviceContextTextAlignment.Default );
221
if( !foreColor.IsEmpty && foreColor != this.
dc
.TextColor)
223
this.
dc
.SetTextColor(foreColor);
228
this.
dc
.SelectFont(font);
235
if( this.
dc
.BackgroundMode != newBackGndMode )
237
this.
dc
.SetBackgroundMode( newBackGndMode );
240
if( newBackGndMode != DeviceContextBackgroundMode.Transparent && backColor != this.
dc
.BackgroundColor )
242
this.
dc
.SetBackgroundColor( backColor );
298
HandleRef hdc = new HandleRef(null, this.
dc
.Hdc);
317
tmpfont = this.
dc
.Font;
385
HandleRef hdc = new HandleRef(null, this.
dc
.Hdc);
389
this.
dc
.SelectFont(font);
396
if (font != null && !MeasurementDCInfo.IsMeasurementDC(this.
dc
)) {
397
this.
dc
.ResetFont();
487
HandleRef hdc = new HandleRef(null, this.
dc
.Hdc);
491
this.
dc
.SelectFont(font);
588
HandleRef hdc = new HandleRef(this.
dc
, this.
dc
.Hdc);
592
this.
dc
.SelectObject(pen.HPen, GdiObjectType.Pen);
595
DeviceContextBinaryRasterOperationFlags rasterOp = this.
dc
.BinaryRasterOperation;
599
rasterOp = this.
dc
.SetRasterOperation(DeviceContextBinaryRasterOperationFlags.CopyPen);
609
this.
dc
.SetRasterOperation(rasterOp);
626
HandleRef hdc = new HandleRef(this.
dc
, this.
dc
.Hdc);
658
HandleRef hdc = new HandleRef(this.
dc
, this.
dc
.Hdc);
660
DeviceContextBinaryRasterOperationFlags rasterOp = this.
dc
.BinaryRasterOperation;
661
DeviceContextBackgroundMode bckMode = this.
dc
.BackgroundMode;
665
rasterOp = this.
dc
.SetRasterOperation( DeviceContextBinaryRasterOperationFlags.CopyPen );
670
bckMode = this.
dc
.SetBackgroundMode( DeviceContextBackgroundMode.Transparent );
675
this.
dc
.SelectObject(pen.HPen, GdiObjectType.Pen);
685
this.
dc
.SetBackgroundMode( bckMode );
690
this.
dc
.SetRasterOperation( rasterOp );
703
HandleRef hdc = new HandleRef( this.
dc
, this.
dc
.Hdc );
706
DeviceContextMapMode mapMode =
dc
.MapMode;
714
dc
.SaveHdc();
721
mapMode =
dc
.SetMapMode(DeviceContextMapMode.Text);
730
dc
.RestoreHdc();