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