DropTargetContext.Set 方法
將置放目標內容資訊加入至指定的異動,以供稍後使用。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。