DiagramClientView.OnDragDropCommon 方法
在拖放時呼叫。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Sub OnDragDropCommon ( _
e As DragEventArgs, _
isDropLocationUserSpecified As Boolean, _
hitShape As ShapeElement _
)
public void OnDragDropCommon(
DragEventArgs e,
bool isDropLocationUserSpecified,
ShapeElement hitShape
)
參數
- e
型別:System.Windows.Forms.DragEventArgs
拖放的 DragEventArgs。
- isDropLocationUserSpecified
型別:System.Boolean
如果表示 (e.X,e.Y) 是由使用者指定或製造。
- hitShape
型別:Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
拖放至 ShapeElement。如果是 null,則會執行點擊的測試。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。