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