UpDownBase.ContextMenu 属性

定义

获取或设置与数字显示框(也称为 up-down 控件)关联的快捷菜单。

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

属性值

与数字显示框关联的 ContextMenu

注解

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

适用于