InputPanel for WinForms帮助文档
ContextMenu 属性 (InputTextBox)






Gets or sets the context menu associated with the text box.
语法
'声明
 
<System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<System.ComponentModel.BrowsableAttribute(False)>
Public Property ContextMenu As System.Windows.Forms.ContextMenu
'用法
 
Dim instance As InputTextBox
Dim value As System.Windows.Forms.ContextMenu
 
instance.ContextMenu = value
 
value = instance.ContextMenu
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ContextMenu ContextMenu {get; set;}
public read-write property ContextMenu: System.Windows.Forms.ContextMenu; 
System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Advanced)
System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)
System.ComponentModel.BrowsableAttribute()
public function get,set ContextMenu : System.Windows.Forms.ContextMenu
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public: __property System.Windows.Forms.ContextMenu* get_ContextMenu();
public: __property void set_ContextMenu( 
   System.Windows.Forms.ContextMenu* value
);
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Advanced)]
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public:
property System.Windows.Forms.ContextMenu^ ContextMenu {
   System.Windows.Forms.ContextMenu^ get();
   void set (    System.Windows.Forms.ContextMenu^ value);
}
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputTextBox 类
InputTextBox 成员

Send Feedback