7 implementations of IDeviceContext
System.Drawing (3)
commonui\System\Drawing\Graphics.cs (1)
35public sealed class Graphics : MarshalByRefObject, IDisposable, IDeviceContext
misc\GDI\DeviceContext.cs (1)
43sealed partial class DeviceContext : MarshalByRefObject, IDeviceContext, IDisposable
misc\GDI\WindowsGraphics.cs (1)
50sealed partial class WindowsGraphics : MarshalByRefObject, IDisposable, IDeviceContext
System.Windows.Forms (4)
misc\GDI\DeviceContext.cs (1)
43sealed partial class DeviceContext : MarshalByRefObject, IDeviceContext, IDisposable
misc\GDI\DeviceContext2.cs (1)
43sealed partial class DeviceContext : MarshalByRefObject, IDeviceContext, IDisposable
misc\GDI\WindowsGraphics.cs (1)
50sealed partial class WindowsGraphics : MarshalByRefObject, IDisposable, IDeviceContext
misc\GDI\WindowsGraphics2.cs (1)
36sealed partial class WindowsGraphics : MarshalByRefObject, IDisposable, IDeviceContext
45 references to IDeviceContext
System.Drawing (4)
misc\GDI\DeviceContext.cs (4)
153this.hDC = ((IDeviceContext)this).GetHdc(); // this.hDC will be released on call to Dispose. 374((IDeviceContext)this).ReleaseHdc(); 429IntPtr IDeviceContext.GetHdc() 452void IDeviceContext.ReleaseHdc()
System.Windows.Forms (41)
misc\GDI\DeviceContext.cs (4)
153this.hDC = ((IDeviceContext)this).GetHdc(); // this.hDC will be released on call to Dispose. 374((IDeviceContext)this).ReleaseHdc(); 429IntPtr IDeviceContext.GetHdc() 452void IDeviceContext.ReleaseHdc()
winforms\Managed\System\WinForms\ControlPaint.cs (2)
353internal static void CopyPixels(IntPtr sourceHwnd, IDeviceContext targetDC, Point sourceLocation, Point destinationLocation, Size blockRegionSize, CopyPixelOperation copyPixelOperation) { 1956public static void DrawStringDisabled(IDeviceContext dc, string s, Font font,
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (11)
29public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor) 56public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, Color backColor) 83public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, TextFormatFlags flags) 101public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, Color backColor, TextFormatFlags flags) 119public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor) 146public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, Color backColor) 173public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, TextFormatFlags flags) 191public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, Color backColor, TextFormatFlags flags) 258public static Size MeasureText(IDeviceContext dc, string text, Font font) 287public static Size MeasureText(IDeviceContext dc, string text, Font font, Size proposedSize ) 317public static Size MeasureText(IDeviceContext dc, string text, Font font, Size proposedSize, TextFormatFlags flags )
winforms\Managed\System\WinForms\GDI\WindowsGraphicsWrapper.cs (2)
23IDeviceContext idc; 42public WindowsGraphicsWrapper( IDeviceContext idc, TextFormatFlags flags)
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (22)
275public void DrawBackground(IDeviceContext dc, Rectangle bounds) { 279internal void DrawBackground(IDeviceContext dc, Rectangle bounds, IntPtr hWnd) { 306public void DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle) { 310internal void DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle, IntPtr hWnd) { 340public Rectangle DrawEdge(IDeviceContext dc, Rectangle bounds, Edges edges, EdgeStyle style, EdgeEffects effects) { 436public void DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl) { 463public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw) { 473public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw, bool drawDisabled) { 483public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw, bool drawDisabled, TextFormatFlags flags) { 508public Rectangle GetBackgroundContentRectangle(IDeviceContext dc, Rectangle bounds) { 532public Rectangle GetBackgroundExtent(IDeviceContext dc, Rectangle contentBounds) { 560public Region GetBackgroundRegion(IDeviceContext dc, Rectangle bounds) { 668public Font GetFont(IDeviceContext dc, FontProperty prop) 737public Size GetPartSize(IDeviceContext dc, ThemeSizeType type) { 741internal Size GetPartSize(IDeviceContext dc, ThemeSizeType type, IntPtr hWnd) { 774public Size GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type) { 819public Padding GetMargins(IDeviceContext dc, MarginProperty prop) { 865public Rectangle GetTextExtent(IDeviceContext dc, string textToDraw, TextFormatFlags flags) { 890public Rectangle GetTextExtent(IDeviceContext dc, Rectangle bounds, string textToDraw, TextFormatFlags flags) { 915public TextMetrics GetTextMetrics(IDeviceContext dc) { 938public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options) { 981public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, IntPtr hRgn, Point pt, HitTestOptions options) {