TreeNode.ContextMenuStrip 属性

定义

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

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

属性值

ContextMenuStrip

与该树节点关联的 ContextMenuStrip

注解

当用户右键单击树节点时,将显示快捷菜单。

适用于