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)
127
using Metafile metafile = new(g.
GetHdc
(), emfType);
146
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(g.
GetHdc
(), emfType));
173
using Metafile metafile = new(g.
GetHdc
(), EmfType.EmfOnly, description);
189
using Metafile metafile = new(g.
GetHdc
(), _rectangleF);
209
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, frameUnit);
219
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, MetafileFrameUnit.Pixel, emfType);
230
using Metafile metafile = new(g.
GetHdc
(), _rectangleF, MetafileFrameUnit.Pixel, EmfType.EmfOnly, description);
239
using Metafile metafile = new(g.
GetHdc
(), _rectangle);
249
using Metafile metafile = new(g.
GetHdc
(), _rectangle, frameUnit);
259
using Metafile metafile = new(g.
GetHdc
(), _rectangle, MetafileFrameUnit.Pixel, emfType);
270
using Metafile metafile = new(g.
GetHdc
(), _rectangle, MetafileFrameUnit.Pixel, EmfType.EmfOnly, description);
306
IntPtr referenceHdc = g.
GetHdc
();
324
IntPtr referenceHdc = g.
GetHdc
();
342
using (Metafile metafile = new(fileName, g.
GetHdc
()))
358
using (Metafile metafile = new(fileName, g.
GetHdc
(), emfType))
375
using (Metafile metafile = new(fileName, g.
GetHdc
(), EmfType.EmfPlusDual, description))
402
IntPtr referenceHdc = g.
GetHdc
();
413
IntPtr referenceHdc = g.
GetHdc
();
426
IntPtr referenceHdc = g.
GetHdc
();
438
IntPtr referenceHdc = g.
GetHdc
();
451
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF))
467
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF, frameUnit))
483
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangleF, MetafileFrameUnit.GdiCompatible, emfType))
501
fileName, g.
GetHdc
(), _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
519
fileName, g.
GetHdc
(), default(RectangleF), MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
535
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle))
551
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle, frameUnit))
567
using (Metafile metafile = new(fileName, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, emfType))
585
fileName, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
603
fileName, g.
GetHdc
(), default, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description))
640
IntPtr referenceHdc = g.
GetHdc
();
662
IntPtr referenceHdc = g.
GetHdc
();
680
IntPtr referenceHdc = g.
GetHdc
();
697
IntPtr referenceHdc = g.
GetHdc
();
713
IntPtr referenceHdc = g.
GetHdc
();
730
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle);
741
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle, frameUnit);
752
using Metafile metafile = new(stream, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, emfType);
765
stream, g.
GetHdc
(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description);
778
stream, g.
GetHdc
(), default, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, description);
802
IntPtr referenceHdc = g.
GetHdc
();
817
IntPtr referenceHdc = g.
GetHdc
();
829
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)
3427
IntPtr hdc = graphics.
GetHdc
();
3500
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\ComboBoxTests.cs (4)
1971
IntPtr hdc = graphics.
GetHdc
();
2008
IntPtr hdc = graphics.
GetHdc
();
2068
IntPtr hdc = graphics.
GetHdc
();
2112
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\ControlTests.Methods.cs (4)
12864
IntPtr hdc = graphics.
GetHdc
();
12959
IntPtr hdc = graphics.
GetHdc
();
13206
IntPtr hdc = graphics.
GetHdc
();
13323
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\GroupBoxTests.cs (4)
2091
IntPtr hdc = graphics.
GetHdc
();
2129
IntPtr hdc = graphics.
GetHdc
();
2192
IntPtr hdc = graphics.
GetHdc
();
2237
IntPtr hdc = graphics.
GetHdc
();
System\Windows\Forms\TextRendererTests.cs (2)
318
.Returns(graphics.
GetHdc
)
543
.Returns(graphics.
GetHdc
)