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