TreeNode.ContextMenu 属性

定义

获取与此树节点关联的快捷菜单。

public:
 virtual property System::Windows::Forms::ContextMenu ^ ContextMenu { System::Windows::Forms::ContextMenu ^ get(); void set(System::Windows::Forms::ContextMenu ^ value); };
public virtual System.Windows.Forms.ContextMenu ContextMenu { get; set; }
member this.ContextMenu : System.Windows.Forms.ContextMenu with get, set
Public Overridable Property ContextMenu As ContextMenu

属性值

ContextMenu

与树节点关联的 ContextMenu

注解

将快捷菜单与树节点关联的首选方法是与 ContextMenuStrip 属性相关联。

适用于