DropTargetContext.Set 方法
添加放置目标上下文信息到指定的事务供以后使用。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
语法
声明
Public Shared Sub Set ( _
transaction As Transaction, _
targetDiagramId As Guid, _
dropLocation As PointD, _
ghostShapes As GhostShapeCollection _
)
public static void Set(
Transaction transaction,
Guid targetDiagramId,
PointD dropLocation,
GhostShapeCollection ghostShapes
)
参数
- transaction
类型:Microsoft.VisualStudio.Modeling.Transaction
保存放置请针对上下文的事务。
- targetDiagramId
类型:System.Guid
放置目标的关系图 ID。
- dropLocation
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
绝对世界坐标的放置位置。
- ghostShapes
类型:Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
提供的重影形状建议属性 (如建议的区域)。这可能为 null。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。