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