SelectedShapesCollection.Add 方法 (DiagramItemCollection)

将指定的 DiagramItems 添加到当前选择的内容中。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
Public Sub Add ( _
    diagramItems As DiagramItemCollection _
)
public void Add(
    DiagramItemCollection diagramItems
)

参数

备注

集合中的最后一 DiagramItem 成为主 DiagramItem。 如果集合中 DiagramItem 已选定,DiagramItem 忽略。

.NET Framework 安全性

请参阅

参考

SelectedShapesCollection 类

Add 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间