Diagram.CreateMetafile Method (ICollection)

Creates a metafile for the specified shapes and their child shapes.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public Function CreateMetafile ( _
    selectedShapesToDraw As ICollection _
) As Metafile
'使用
Dim instance As Diagram
Dim selectedShapesToDraw As ICollection
Dim returnValue As Metafile

returnValue = instance.CreateMetafile(selectedShapesToDraw)
public Metafile CreateMetafile(
    ICollection selectedShapesToDraw
)
public:
Metafile^ CreateMetafile(
    ICollection^ selectedShapesToDraw
)
public function CreateMetafile(
    selectedShapesToDraw : ICollection
) : Metafile

Parameters

Return Value

Type: System.Drawing.Imaging.Metafile

The metafile that contains the shapes.

Permissions

See Also

Reference

Diagram Class

Diagram Members

CreateMetafile Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace