添加 unplaced shape 上下文信息到指定的事务以备将来之用。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Shared Sub SetUnplacedShapesContext ( _
transaction As Transaction, _
targetDiagram As Diagram, _
unplacedShapeMap As IDictionary _
)
public static void SetUnplacedShapesContext(
Transaction transaction,
Diagram targetDiagram,
IDictionary unplacedShapeMap
)
参数
- transaction
类型:Microsoft.VisualStudio.Modeling.Transaction
保存 unplaced shape 上下文的事务。
- targetDiagram
类型:Microsoft.VisualStudio.Modeling.Diagrams.Diagram
unplaced shape 的关系图。
- unplacedShapeMap
类型:System.Collections.IDictionary
需要放置的形状的集合。字典将 (unplaced shapes) ShapeElements 映射到指示 unplaced shape 是否在视图修复过程中已被创建的 bool。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。