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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Function CreateMetafile ( _
selectedShapesToDraw As ICollection _
) As Metafile
public Metafile CreateMetafile(
ICollection selectedShapesToDraw
)
public:
Metafile^ CreateMetafile(
ICollection^ selectedShapesToDraw
)
member CreateMetafile :
selectedShapesToDraw:ICollection -> Metafile
public function CreateMetafile(
selectedShapesToDraw : ICollection
) : Metafile
Parameters
- selectedShapesToDraw
Type: System.Collections.ICollection
The shapes to add to the metafile.
Return Value
Type: System.Drawing.Imaging.Metafile
The metafile that contains the shapes.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.