Condividi tramite


Diagram.CreateMetafile Method

Definition

Overloads

CreateMetafile(ICollection)

Creates a metafile of the specified shapes and their descendants at 100%.

CreateMetafile(ICollection, String)

Creates a metafile of the specified shapes and their descendants at 100%.

CreateMetafile(ICollection, String, Boolean)

Creates a metafile of the specified shapes and their descendants at 100%.

CreateMetafile(ICollection)

Creates a metafile of the specified shapes and their descendants at 100%.

public:
 System::Drawing::Imaging::Metafile ^ CreateMetafile(System::Collections::ICollection ^ selectedShapesToDraw);
public System.Drawing.Imaging.Metafile CreateMetafile (System.Collections.ICollection selectedShapesToDraw);
member this.CreateMetafile : System.Collections.ICollection -> System.Drawing.Imaging.Metafile
Public Function CreateMetafile (selectedShapesToDraw As ICollection) As Metafile

Parameters

selectedShapesToDraw
ICollection

The collection of shapes to draw.

Returns

A metafile of the specified shapes and their descendants.

Applies to

CreateMetafile(ICollection, String)

Creates a metafile of the specified shapes and their descendants at 100%.

public:
 System::Drawing::Imaging::Metafile ^ CreateMetafile(System::Collections::ICollection ^ selectedShapesToDraw, System::String ^ fileName);
public System.Drawing.Imaging.Metafile CreateMetafile (System.Collections.ICollection selectedShapesToDraw, string fileName);
member this.CreateMetafile : System.Collections.ICollection * string -> System.Drawing.Imaging.Metafile
Public Function CreateMetafile (selectedShapesToDraw As ICollection, fileName As String) As Metafile

Parameters

selectedShapesToDraw
ICollection

The collection of shapes to draw.

fileName
String

The metafile file name to create. If this is null, then the metafile will be created in memory.

Returns

A metafile of the specified shapes and their descendants.

Applies to

CreateMetafile(ICollection, String, Boolean)

Creates a metafile of the specified shapes and their descendants at 100%.

public:
 System::Drawing::Imaging::Metafile ^ CreateMetafile(System::Collections::ICollection ^ selectedShapesToDraw, System::String ^ fileName, bool paintDiagram);
public System.Drawing.Imaging.Metafile CreateMetafile (System.Collections.ICollection selectedShapesToDraw, string fileName, bool paintDiagram);
member this.CreateMetafile : System.Collections.ICollection * string * bool -> System.Drawing.Imaging.Metafile
Public Function CreateMetafile (selectedShapesToDraw As ICollection, fileName As String, paintDiagram As Boolean) As Metafile

Parameters

selectedShapesToDraw
ICollection

The collection of shapes to draw.

fileName
String

The metafile file name to create. If this is null, then the metafile will be created in memory.

paintDiagram
Boolean

true if diagram will also be painted when meta file is created.

Returns

A metafile of the specified shapes and their descendants.

Applies to