8 instantiations of Metafile
PresentationFramework-SystemDrawing (3)
SystemDrawingExtension.cs (3)
35internal override object GetMetafileFromHemf(nint hMetafile) => new Metafile(hMetafile, deleteEmf: false); 61Metafile metafile = new(handle, deleteEmf: false); 91Metafile metafile = new(metafileStream);
System.Drawing.Common (2)
System\Drawing\Image.cs (1)
861GdiPlus.ImageType.ImageTypeMetafile => new Metafile((nint)nativeImage),
System\Drawing\Printing\PreviewPrintController.cs (1)
65Metafile metafile = new(
System.Windows.Forms.Design (1)
System\Drawing\Design\MetafileEditor.cs (1)
18protected override Image LoadFromStream(Stream stream) => new Metafile(stream);
System.Windows.Forms.Primitives (2)
System\Drawing\ImageExtensions.cs (2)
35using (Metafile metafile = new((HMETAFILE)handle, header, deleteWmf: false)) 41using (Metafile metafile = new((HENHMETAFILE)handle, deleteEmf: false))
116 references to Metafile
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
27internal override bool IsMetafile(object? data) => data is Metafile; 31Metafile metafile => metafile.GetHenhmetafile(), 61Metafile metafile = new(handle, deleteEmf: false); 91Metafile metafile = new(metafileStream);
System.Drawing (1)
System.Drawing.cs (1)
92[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.Metafile))]
System.Drawing.Common (106)
System\Drawing\Graphics.cs (36)
2449public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback) => 2452public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData) => 2455public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback) => 2458public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback, IntPtr callbackData) => 2461public void EnumerateMetafile(Metafile metafile, RectangleF destRect, EnumerateMetafileProc callback) => 2464public void EnumerateMetafile(Metafile metafile, RectangleF destRect, EnumerateMetafileProc callback, IntPtr callbackData) => 2467public void EnumerateMetafile(Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback) => 2470public void EnumerateMetafile(Metafile metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData) => 2473public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, EnumerateMetafileProc callback) => 2477Metafile metafile, 2482public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback) => 2485public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData) => 2489Metafile metafile, 2496Metafile metafile, 2504Metafile metafile, 2511Metafile metafile, 2519Metafile metafile, 2526Metafile metafile, 2534Metafile metafile, 2541Metafile metafile, 2549Metafile metafile, 2556Metafile metafile, 2564Metafile metafile, 2571Metafile metafile, 2940Metafile metafile, 2961Metafile metafile, 2969Metafile metafile, 2990Metafile metafile, 2997Metafile metafile, 3026Metafile metafile, 3055Metafile metafile, 3080Metafile metafile, 3096Metafile metafile, 3121Metafile metafile, 3130Metafile metafile, 3163Metafile metafile,
System\Drawing\Imaging\Metafile.cs (46)
27/// Initializes a new instance of the <see cref='Metafile'/> class from the specified handle and 46/// Initializes a new instance of the <see cref='Metafile'/> class from the specified handle and 57/// Initializes a new instance of the <see cref='Metafile'/> class from the specified filename. 72/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 81/// Initializes a new instance of the <see cref='Metafile'/> class from the specified handle to a device context. 89/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 98/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 107/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 116/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 139/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 148/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 157/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 165/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 173/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 181/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 189/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 197/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 205/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 235/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 243/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 251/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 259/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 267/// Initializes a new instance of the <see cref='Metafile'/> class from the specified data stream. 275/// Initializes a new instance of the <see cref='Metafile'/> class from the specified data stream. 283/// Initializes a new instance of the <see cref='Metafile'/> class from the specified data stream. 291/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 299/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 307/// Initializes a new instance of the <see cref='Metafile'/> class from the specified data stream. 315/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 323/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 331/// Initializes a new instance of the <see cref='Metafile'/> class from the specified handle and 340/// Initializes a new instance of the <see cref='Metafile'/> class from the specified stream. 353/// Initializes a new instance of the <see cref='Metafile'/> class from the specified handle to a device context. 373/// Initializes a new instance of the <see cref='Metafile'/> class from the specified device context, bounded 397/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 422/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 448/// Initializes a new instance of the <see cref='Metafile'/> class from the specified data stream. 472/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 497/// Initializes a new instance of the <see cref='Metafile'/> class with the specified filename. 526/// Initializes a new instance of the <see cref="Metafile"/> class from a native metafile handle. 553/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='Metafile'/>. 568/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='Metafile'/>. 581/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='Metafile'/>. 599/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='Metafile'/>. 616/// Returns the <see cref='MetafileHeader'/> associated with this <see cref='Metafile'/>. 631/// Returns a Windows handle to an enhanced <see cref='Metafile'/>.
System\Drawing\Imaging\MetafileFrameUnit.cs (1)
8/// This is specified during the creation of the <see cref='Metafile'/>.
System\Drawing\Imaging\MetafileHeader.cs (18)
9/// Contains attributes of an associated <see cref='Metafile'/>. 21/// Gets the type of the associated <see cref='Metafile'/>. 26/// Gets the size, in bytes, of the associated <see cref='Metafile'/>. 31/// Gets the version number of the associated <see cref='Metafile'/>. 36/// Gets the horizontal resolution, in dots-per-inch, of the associated <see cref='Metafile'/>. 41/// Gets the vertical resolution, in dots-per-inch, of the associated <see cref='Metafile'/>. 46/// Gets a <see cref='Rectangle'/> that bounds the associated <see cref='Metafile'/>. 51/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Windows metafile format. 56/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Windows Placeable metafile format. 61/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Windows enhanced metafile format. 66/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Windows enhanced 74/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Windows enhanced 81/// Returns a value indicating whether the associated <see cref='Metafile'/> is in the Dual enhanced metafile 87/// Returns a value indicating whether the associated <see cref='Metafile'/> supports only the Windows 93/// Returns a value indicating whether the associated <see cref='Metafile'/> is device-dependent. 98/// Gets the WMF header file for the associated <see cref='Metafile'/>. 110/// Gets the logical horizontal resolution, in dots-per-inch, of the associated <see cref='Metafile'/>. 115/// Gets the logical vertical resolution, in dots-per-inch, of the associated <see cref='Metafile'/>.
System\Drawing\Imaging\MetafileType.cs (1)
7/// Specifies the format of a <see cref='Metafile'/>.
System\Drawing\Imaging\MetaHeader.cs (2)
24/// Represents the type of the associated <see cref='Metafile'/>. 51/// Represents the size, in bytes, of the associated <see cref='Metafile'/>.
System\Drawing\PointerExtensions.cs (1)
28public static GpMetafile* Pointer(this Metafile? metafile) => metafile is null ? null : (GpMetafile*)((Image)metafile).Pointer();
System\Drawing\Printing\PreviewPrintController.cs (1)
65Metafile metafile = new(
System.Windows.Forms (3)
System\Drawing\Design\UITypeEditor.cs (1)
59[typeof(Metafile)] = $"System.Drawing.Design.MetafileEditor, {Assemblies.SystemDrawingDesign}",
System\Windows\Forms\Control.cs (1)
4927/// or <see cref="Drawing.Imaging.Metafile"/>) or some <see cref="object"/> that implements
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2142/// either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, or <see cref="Metafile"/>)
System.Windows.Forms.Primitives (2)
System\Drawing\ImageExtensions.cs (2)
35using (Metafile metafile = new((HMETAFILE)handle, header, deleteWmf: false)) 41using (Metafile metafile = new((HENHMETAFILE)handle, deleteEmf: false))