Export (0) Print
Expand All

TreeNode.ContextMenu Property

Gets the shortcut menu that is associated with this tree node.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

abstract ContextMenu : ContextMenu with get, set 
override ContextMenu : ContextMenu with get, set

Property Value

Type: System.Windows.Forms.ContextMenu
The ContextMenu that is associated with the tree node.

The preferred way to associate a shortcut menu with a tree node is with the ContextMenuStrip property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft