共用方式為


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 命名空間