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, _
fileName As String _
) As Metafile
'使用
Dim instance As Diagram
Dim selectedShapesToDraw As ICollection
Dim fileName As String
Dim returnValue As Metafile
returnValue = instance.CreateMetafile(selectedShapesToDraw, _
fileName)
public Metafile CreateMetafile(
ICollection selectedShapesToDraw,
string fileName
)
public:
Metafile^ CreateMetafile(
ICollection^ selectedShapesToDraw,
String^ fileName
)
public function CreateMetafile(
selectedShapesToDraw : ICollection,
fileName : String
) : Metafile
Parameters
selectedShapesToDraw
Type: System.Collections.ICollectionThe shapes to add to the metafile.
fileName
Type: System.StringThe name of the metafile.
Return Value
Type: System.Drawing.Imaging.Metafile
The metafile that contains the shapes.
Permissions
- 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.