共用方式為


DiagramDocView.ShowContextMenu 方法

在 [圖表] 檢視中的特定位置,會顯示快顯功能表。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Protected Sub ShowContextMenu ( _
    contextMenuId As CommandID, _
    pt As Point _
)
protected void ShowContextMenu(
    CommandID contextMenuId,
    Point pt
)

參數

  • pt
    型別:System.Drawing.Point
    決定快顯功能表在螢幕上出現的位置的 x 座標和 y 座標。

.NET Framework 安全性

請參閱

參考

DiagramDocView 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間