61 references to EmfOnly
System.Drawing.Common.Tests (60)
mono\System.Imaging\MetafileTest.cs (3)
198
case EmfType.
EmfOnly
:
266
Assert.Throws<ArgumentNullException>(() => Metafile_StreamEmfType(null, EmfType.
EmfOnly
));
273
Metafile_StreamEmfType(ms, EmfType.
EmfOnly
);
System\Drawing\Imaging\MetafileTests.cs (57)
113
yield return new object[] { EmfType.
EmfOnly
};
131
yield return new object[] { (EmfType.
EmfOnly
- 1) };
149
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile((IntPtr)null, EmfType.
EmfOnly
));
155
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, EmfType.
EmfOnly
));
170
using Metafile metafile = new(g.GetHdc(), EmfType.
EmfOnly
, description);
178
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, EmfType.
EmfOnly
, description));
227
using Metafile metafile = new(g.GetHdc(), _rectangleF, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
, description);
267
using Metafile metafile = new(g.GetHdc(), _rectangle, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
, description);
277
new Metafile(IntPtr.Zero, _rectangleF, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
));
279
new Metafile(IntPtr.Zero, _rectangleF, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
, "description"));
284
new Metafile(IntPtr.Zero, _rectangle, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
));
286
new Metafile(IntPtr.Zero, _rectangle, MetafileFrameUnit.Pixel, EmfType.
EmfOnly
, "description"));
305
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(referenceHdc, _rectangleF, farameUnit, EmfType.
EmfOnly
));
307
new Metafile(referenceHdc, _rectangleF, farameUnit, EmfType.
EmfOnly
, "description"));
310
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(referenceHdc, _rectangle, farameUnit, EmfType.
EmfOnly
));
312
new Metafile(referenceHdc, _rectangle, farameUnit, EmfType.
EmfOnly
, "description"));
387
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, EmfType.
EmfOnly
));
388
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, EmfType.
EmfOnly
, "description"));
412
AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.
EmfOnly
));
413
AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.
EmfOnly
, "description"));
425
AssertExtensions.Throws<ArgumentException>("path", null, () => new Metafile(fileName, referenceHdc, EmfType.
EmfOnly
));
426
AssertExtensions.Throws<ArgumentException>("path", null, () => new Metafile(fileName, referenceHdc, EmfType.
EmfOnly
, "description"));
437
Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, EmfType.
EmfOnly
));
438
Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, EmfType.
EmfOnly
, "description"));
498
fileName, g.GetHdc(), _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description))
501
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
516
fileName, g.GetHdc(), new RectangleF(), MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description))
519
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
582
fileName, g.GetHdc(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description))
585
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
600
fileName, g.GetHdc(), new Rectangle(), MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description))
603
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
617
new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
619
new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
624
new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
626
new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
640
new Metafile(fileName, referenceHdc, _rectangleF, frameUnit, EmfType.
EmfOnly
));
642
new Metafile(fileName, referenceHdc, _rectangleF, frameUnit, EmfType.
EmfOnly
, "description"));
646
new Metafile(fileName, referenceHdc, _rectangle, frameUnit, EmfType.
EmfOnly
));
648
new Metafile(fileName, referenceHdc, _rectangle, frameUnit, EmfType.
EmfOnly
, "description"));
682
new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
684
new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
699
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
701
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
715
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
717
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
762
stream, g.GetHdc(), _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description);
764
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
775
stream, g.GetHdc(), new Rectangle(), MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, description);
777
AssertEmfType(metafile.GetMetafileHeader(), EmfType.
EmfOnly
);
787
new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
789
new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
802
new Metafile(stream, referenceHdc, _rectangle, frameUnit, EmfType.
EmfOnly
));
804
new Metafile(stream, referenceHdc, _rectangle, frameUnit, EmfType.
EmfOnly
, "description"));
830
new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
));
832
new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.
EmfOnly
, "description"));
947
case EmfType.
EmfOnly
:
System.Windows.Forms.Tests (1)
System\Windows\Forms\TextRendererTests.cs (1)
753
using (Metafile metafileRecorder = new(stream, hdc.HDC, EmfType.
EmfOnly
))