Implemented interface member:
method
GetHdc
System.Drawing.IDeviceContext.GetHdc()
142 references to GetHdc
System.Drawing.Common.Tests (119)
mono\System.Drawing\GraphicsTests.cs (8)
2135
IntPtr hdc1 = g.
GetHdc
();
2137
IntPtr hdc2 = g.
GetHdc
();
2155
IntPtr hdc = g.
GetHdc
();
2165
IntPtr hdc1 = g.
GetHdc
();
2167
IntPtr hdc2 = g.
GetHdc
();
2185
g.
GetHdc
();
2984
IntPtr hdc1 = g.
GetHdc
();
2986
IntPtr hdc2 = g.
GetHdc
();
mono\System.Imaging\MetafileTest.cs (5)
218
IntPtr hdc = g.
GetHdc
();
235
IntPtr hdc = g.
GetHdc
();
251
IntPtr hdc = g.
GetHdc
();
292
IntPtr hdc = g.
GetHdc
();
334
IntPtr hdc = g.
GetHdc
();
System\Drawing\BufferedGraphicsContextTests.cs (4)
61
IntPtr hdc = graphics.
GetHdc
();
83
IntPtr hdc = graphics.
GetHdc
();
105
IntPtr hdc = graphics.
GetHdc
();
163
graphics.
GetHdc
();
System\Drawing\BufferedGraphicsTests.cs (1)
70
IntPtr hdc = graphics.
GetHdc
();
System\Drawing\FontTests.cs (4)
469
IntPtr hdc = graphics.
GetHdc
();
593
IntPtr hdc = graphics.
GetHdc
();
618
IntPtr hdc = graphics.
GetHdc
();
637
graphics.
GetHdc
();
System\Drawing\Graphics_DrawBezierTests.cs (2)
89
graphics.
GetHdc
();
163
graphics.
GetHdc
();
System\Drawing\Graphics_DrawLineTests.cs (2)
69
graphics.
GetHdc
();
146
graphics.
GetHdc
();
System\Drawing\GraphicsTests.Core.cs (3)
27
graphics.
GetHdc
();
99
graphics.
GetHdc
();
175
graphics.
GetHdc
();
System\Drawing\GraphicsTests.cs (47)
23
IntPtr hdc = graphics.
GetHdc
();
45
Assert.Equal(graphics1.
GetHdc
(), graphics2.
GetHdc
());
59
graphics.
GetHdc
();
62
Assert.Throws<InvalidOperationException>(() => graphics.
GetHdc
());
77
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
GetHdc
());
137
IntPtr hdc = graphics.
GetHdc
();
142
hdc = graphics.
GetHdc
();
147
hdc = graphics.
GetHdc
();
158
IntPtr hdc = graphics.
GetHdc
();
162
hdc = graphics.
GetHdc
();
174
IntPtr hdc1 = graphics1.
GetHdc
();
175
IntPtr hdc2 = graphics2.
GetHdc
();
347
graphics.
GetHdc
();
431
graphics.
GetHdc
();
471
graphics.
GetHdc
();
485
graphics.
GetHdc
();
511
graphics.
GetHdc
();
556
graphics.
GetHdc
();
619
graphics.
GetHdc
();
672
graphics.
GetHdc
();
733
graphics.
GetHdc
();
793
graphics.
GetHdc
();
875
graphics.
GetHdc
();
935
graphics.
GetHdc
();
985
graphics.
GetHdc
();
1038
graphics.
GetHdc
();
1121
graphics.
GetHdc
();
1163
graphics.
GetHdc
();
1267
graphics.
GetHdc
();
1343
graphics.
GetHdc
();
1424
graphics.
GetHdc
();
1500
graphics.
GetHdc
();
1657
nint hdc = graphics.
GetHdc
();
1891
graphics.
GetHdc
();
1934
graphics.
GetHdc
();
2010
graphics.
GetHdc
();
2067
graphics.
GetHdc
();
2140
graphics.
GetHdc
();
2195
graphics.
GetHdc
();
2278
graphics.
GetHdc
();
2355
graphics.
GetHdc
();
2428
graphics.
GetHdc
();
2536
graphics.
GetHdc
();
2628
graphics.
GetHdc
();
2707
graphics.
GetHdc
();
2757
graphics.
GetHdc
();
System\Drawing\Imaging\MetafileTests.cs (43)
124
using Metafile metafile = new(g.
GetHdc
(), emfType);
143
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(g.
GetHdc
(), emfType));
170
using Metafile metafile = new(g.
GetHdc
(), EmfType.EmfOnly, description);
186
using Metafile metafile = new(g.
GetHdc
(), _rectangleF);
206
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, frameUnit);
216
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, MetafileFrameUnit.Pixel, emfType);
227
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, MetafileFrameUnit.Pixel, EmfType.EmfOnly, description);
236
using Metafile metafile = new(g.
GetHdc
(), _rectangle);
246
using Metafile metafile = new(g.
GetHdc
(), _rectangle, frameUnit);
256
using Metafile metafile = new(g.
GetHdc
(), _rectangle, MetafileFrameUnit.Pixel, emfType);
267
using Metafile metafile = new(g.
GetHdc
(), _rectangle, MetafileFrameUnit.Pixel, EmfType.EmfOnly, description);
303
IntPtr referenceHdc = g.
GetHdc
();
321
IntPtr referenceHdc = g.
GetHdc
();
339
using (Metafile metafile = new(fileName, g.
GetHdc
()))
355
using (Metafile metafile = new(fileName, g.
GetHdc
(), emfType))
372
using (Metafile metafile = new(fileName, g.
GetHdc
(), EmfType.EmfPlusDual, description))
399
IntPtr referenceHdc = g.
GetHdc
();
410
IntPtr referenceHdc = g.
GetHdc
();
423
IntPtr referenceHdc = g.
GetHdc
();
435
IntPtr referenceHdc = g.
GetHdc
();
448
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF))
464
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF, frameUnit))
480
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF, MetafileFrameUnit.GdiCompatible, emfType))
498
fileName, g.
GetHdc
(), _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
516
fileName, g.
GetHdc
(), default(RectangleF), MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
532
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle))
548
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle, frameUnit))
564
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, emfType))
582
fileName, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
600
fileName, g.
GetHdc
(), default, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
637
IntPtr referenceHdc = g.
GetHdc
();
659
IntPtr referenceHdc = g.
GetHdc
();
677
IntPtr referenceHdc = g.
GetHdc
();
694
IntPtr referenceHdc = g.
GetHdc
();
710
IntPtr referenceHdc = g.
GetHdc
();
727
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle);
738
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle, frameUnit);
749
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, emfType);
762
stream, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description);
775
stream, g.
GetHdc
(), default, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description);
799
IntPtr referenceHdc = g.
GetHdc
();
814
IntPtr referenceHdc = g.
GetHdc
();
826
IntPtr referenceHdc = g.
GetHdc
();
System.Windows.Forms (4)
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
528
HDC dc = (HDC)g.
GetHdc
();
664
HDC dc = (HDC)graphics.
GetHdc
();
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
161
IntPtr IDeviceContext.GetHdc() => Graphics?.
GetHdc
() ?? IntPtr.Zero;
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
134
IntPtr IDeviceContext.GetHdc() => Graphics?.
GetHdc
() ?? IntPtr.Zero;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
442
IntPtr hDc = g.
GetHdc
();
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextScopeTests.cs (2)
74
IntPtr hdc = graphics.
GetHdc
();
92
graphics.
GetHdc
();
System.Windows.Forms.Tests (16)
System\Windows\Forms\ButtonTests.cs (2)
3425
IntPtr hdc = graphics.
GetHdc
();
3498
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\ComboBoxTests.cs (4)
1969
IntPtr hdc = graphics.
GetHdc
();
2006
IntPtr hdc = graphics.
GetHdc
();
2066
IntPtr hdc = graphics.
GetHdc
();
2110
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\ControlTests.Methods.cs (4)
12895
IntPtr hdc = graphics.
GetHdc
();
12990
IntPtr hdc = graphics.
GetHdc
();
13237
IntPtr hdc = graphics.
GetHdc
();
13354
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\GroupBoxTests.cs (4)
2089
IntPtr hdc = graphics.
GetHdc
();
2127
IntPtr hdc = graphics.
GetHdc
();
2190
IntPtr hdc = graphics.
GetHdc
();
2235
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\TextRendererTests.cs (2)
316
.Returns(graphics.
GetHdc
)
541
.Returns(graphics.
GetHdc
)