DiagramDocView.ContextMenuId Property

Gets the shortcut menu to display when a user right-clicks the diagram view.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Protected MustOverride ReadOnly Property ContextMenuId As CommandID
'使用
Dim value As CommandID

value = Me.ContextMenuId
protected abstract CommandID ContextMenuId { get; }
protected:
virtual property CommandID^ ContextMenuId {
    CommandID^ get () abstract;
}
protected abstract function get ContextMenuId () : CommandID

Property Value

Type: System.ComponentModel.Design.CommandID

The command ID that is assigned to the shortcut menu.

Permissions

See Also

Reference

DiagramDocView Class

DiagramDocView Members

Microsoft.VisualStudio.Modeling.Shell Namespace