DragSourceContext.Set 方法
將拖曳來源資訊加入至 ElementGroupPrototype 的來源內容。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
Public Shared Sub Set ( _
elementGroupPrototype As ElementGroupPrototype, _
initialDragLocation As PointD, _
ghostShapes As GhostShapeCollection _
)
public static void Set(
ElementGroupPrototype elementGroupPrototype,
PointD initialDragLocation,
GhostShapeCollection ghostShapes
)
參數
- elementGroupPrototype
類型:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
要新增資訊的 ElementGroupPrototype。
- initialDragLocation
類型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
絕對全局座標中滑鼠的初始位置。
- ghostShapes
類型:Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
表示 ElementGroupPrototype 中所有圖案之虛構圖案的集合。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。