Diagram.CreateMetafile 方法 (ICollection, String)
创建指定的形状及其子形状的一个图元文件。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
语法
声明
Public Function CreateMetafile ( _
selectedShapesToDraw As ICollection, _
fileName As String _
) As Metafile
public Metafile CreateMetafile(
ICollection selectedShapesToDraw,
string fileName
)
参数
- selectedShapesToDraw
类型:System.Collections.ICollection
添加的形状到图元文件。
- fileName
类型:System.String
图元文件的名称。
返回值
类型:System.Drawing.Imaging.Metafile
包含形状的图元文件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。